Skip to content

Commit

Permalink
Merge pull request #144 from codecrafters-io/update-course-stage-slug
Browse files Browse the repository at this point in the history
CC-1227 update course stage slug
  • Loading branch information
libmartinito authored May 17, 2024
2 parents 7db60b3 + e8b02a4 commit acd143e
Show file tree
Hide file tree
Showing 14 changed files with 423 additions and 379 deletions.
22 changes: 11 additions & 11 deletions internal/stages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,77 +13,77 @@ func TestStages(t *testing.T) {

testCases := map[string]tester_utils_testing.TesterOutputTestCase{
"bind_failure": {
UntilStageSlug: "init",
UntilStageSlug: "jm1",
CodePath: "./test_helpers/scenarios/bind/failure",
ExpectedExitCode: 1,
StdoutFixturePath: "./test_helpers/fixtures/bind/failure",
NormalizeOutputFunc: normalizeTesterOutput,
},
"bind_timeout": {
UntilStageSlug: "init",
UntilStageSlug: "jm1",
CodePath: "./test_helpers/scenarios/bind/timeout",
ExpectedExitCode: 1,
StdoutFixturePath: "./test_helpers/fixtures/bind/timeout",
NormalizeOutputFunc: normalizeTesterOutput,
},
"bind_success": {
UntilStageSlug: "init",
UntilStageSlug: "jm1",
CodePath: "./test_helpers/scenarios/bind/success",
ExpectedExitCode: 0,
StdoutFixturePath: "./test_helpers/fixtures/bind/success",
NormalizeOutputFunc: normalizeTesterOutput,
},
"ping_pong_eof": {
UntilStageSlug: "ping-pong",
UntilStageSlug: "rg2",
CodePath: "./test_helpers/scenarios/ping-pong/eof",
ExpectedExitCode: 1,
StdoutFixturePath: "./test_helpers/fixtures/ping-pong/eof",
NormalizeOutputFunc: normalizeTesterOutput,
},
"ping_pong_without_crlf": {
UntilStageSlug: "ping-pong",
UntilStageSlug: "rg2",
CodePath: "./test_helpers/scenarios/ping-pong/without_crlf",
ExpectedExitCode: 1,
StdoutFixturePath: "./test_helpers/fixtures/ping-pong/without_crlf",
NormalizeOutputFunc: normalizeTesterOutput,
},
"ping_pong_slow_response": {
UntilStageSlug: "ping-pong",
UntilStageSlug: "rg2",
CodePath: "./test_helpers/scenarios/ping-pong/slow_response",
ExpectedExitCode: 0,
StdoutFixturePath: "./test_helpers/fixtures/ping-pong/slow_response",
NormalizeOutputFunc: normalizeTesterOutput,
},
"ping_pong_without_read_multiple_pongs": {
UntilStageSlug: "ping-pong",
UntilStageSlug: "rg2",
CodePath: "./test_helpers/scenarios/ping-pong/without_read_multiple_pongs",
ExpectedExitCode: 1,
StdoutFixturePath: "./test_helpers/fixtures/ping-pong/without_read_multiple_pongs",
NormalizeOutputFunc: normalizeTesterOutput,
},
"expiry_pass": {
UntilStageSlug: "expiry",
UntilStageSlug: "yz1",
CodePath: "./test_helpers/pass_all",
ExpectedExitCode: 0,
StdoutFixturePath: "./test_helpers/fixtures/expiry/pass",
NormalizeOutputFunc: normalizeTesterOutput,
},
"rdb_pass": {
UntilStageSlug: "rdb-read-value-with-expiry",
UntilStageSlug: "sm4",
CodePath: "./test_helpers/pass_all",
ExpectedExitCode: 0,
StdoutFixturePath: "./test_helpers/fixtures/rdb-read-value-with-expiry/pass",
NormalizeOutputFunc: normalizeTesterOutput,
},
"repl_pass": {
UntilStageSlug: "repl-wait",
UntilStageSlug: "na2",
CodePath: "./test_helpers/pass_all",
ExpectedExitCode: 0,
StdoutFixturePath: "./test_helpers/fixtures/repl-wait/pass",
NormalizeOutputFunc: normalizeTesterOutput,
},
"streams_pass": {
UntilStageSlug: "streams-xread-block-max-id",
UntilStageSlug: "xu1",
CodePath: "./test_helpers/pass_all",
ExpectedExitCode: 0,
StdoutFixturePath: "./test_helpers/fixtures/streams/pass",
Expand Down
Loading

0 comments on commit acd143e

Please sign in to comment.