@@ -54,69 +54,69 @@ func TestStages(t *testing.T) {
5454 StdoutFixturePath : "./test_helpers/fixtures/fail_scanning_multiline_errors/3_extra_line" ,
5555 NormalizeOutputFunc : normalizeTesterOutput ,
5656 },
57- // "pass_scanning_jlox": {
58- // UntilStageSlug: "pq5",
59- // CodePath: "../craftinginterpreters/build/gen/chap04_scanning",
60- // ExpectedExitCode: 0,
61- // StdoutFixturePath: "./test_helpers/fixtures/pass_scanning",
62- // NormalizeOutputFunc: normalizeTesterOutput,
63- // },
64- // "pass_parsing_jlox": {
65- // StageSlugs: []string{"wz8", "ht8", "uh4", "yf2", "wa9", "mq1", "xe6", "th5", "ra8", "sc2"},
66- // CodePath: "../craftinginterpreters/build/gen/chap06_parsing",
67- // ExpectedExitCode: 0,
68- // StdoutFixturePath: "./test_helpers/fixtures/pass_parsing",
69- // NormalizeOutputFunc: normalizeTesterOutput,
70- // },
71- // "pass_evaluating_jlox": {
72- // StageSlugs: []string{"ib5", "cq1", "yu6", "gj9", "hw7", "et4", "jx8", "jy2", "bp3", "dc1", "oq9", "lv1", "iz6"},
73- // CodePath: "../craftinginterpreters/build/gen/chap07_evaluating",
74- // ExpectedExitCode: 0,
75- // StdoutFixturePath: "./test_helpers/fixtures/pass_evaluating",
76- // NormalizeOutputFunc: normalizeTesterOutput,
77- // },
78- // "pass_statements_inprogress_jlox": {
79- // StageSlugs: []string{"xy1", "oe4", "fi3", "yg2", "sv7", "bc1", "dw9", "pl3", "vr5", "fb4"},
80- // CodePath: "../craftinginterpreters/build/gen/chap08_statements",
81- // ExpectedExitCode: 0,
82- // StdoutFixturePath: "./test_helpers/fixtures/pass_statements",
83- // NormalizeOutputFunc: normalizeTesterOutput,
84- // },
85- // "pass_statements_completed_jlox": {
86- // StageSlugs: []string{"xy1", "oe4", "fi3", "yg2", "sv7", "bc1", "dw9", "pl3", "vr5", "fb4"},
87- // CodePath: "../craftinginterpreters/build/gen/chap13_inheritance",
88- // ExpectedExitCode: 0,
89- // StdoutFixturePath: "./test_helpers/fixtures/pass_statements_final",
90- // NormalizeOutputFunc: normalizeTesterOutput,
91- // },
92- // "pass_control_flow_inprogress_jlox": {
93- // StageSlugs: []string{"ne3", "st5", "fh8", "xj4", "wk8", "jx4", "qy3", "bw6", "vt1"},
94- // CodePath: "../craftinginterpreters/build/gen/chap09_control",
95- // ExpectedExitCode: 0,
96- // StdoutFixturePath: "./test_helpers/fixtures/pass_control_flow",
97- // NormalizeOutputFunc: normalizeTesterOutput,
98- // },
99- // "pass_control_flow_completed_jlox": {
100- // StageSlugs: []string{"ne3", "st5", "fh8", "xj4", "wk8", "jx4", "qy3", "bw6", "vt1"},
101- // CodePath: "../craftinginterpreters/build/gen/chap13_inheritance",
102- // ExpectedExitCode: 0,
103- // StdoutFixturePath: "./test_helpers/fixtures/pass_control_flow_final",
104- // NormalizeOutputFunc: normalizeTesterOutput,
105- // },
106- // "pass_functions_inprogress_jlox": {
107- // StageSlugs: []string{"av4", "pg8", "lb6", "px4", "rd2", "ey3", "fj7", "bz4", "gg6"},
108- // CodePath: "../craftinginterpreters/build/gen/chap10_functions",
109- // ExpectedExitCode: 0,
110- // StdoutFixturePath: "./test_helpers/fixtures/pass_functions",
111- // NormalizeOutputFunc: normalizeTesterOutput,
112- // },
113- // "pass_functions_completed_jlox": {
114- // StageSlugs: []string{"av4", "pg8", "lb6", "px4", "rd2", "ey3", "fj7", "bz4", "gg6"},
115- // CodePath: "../craftinginterpreters/build/gen/chap13_inheritance",
116- // ExpectedExitCode: 0,
117- // StdoutFixturePath: "./test_helpers/fixtures/pass_functions_final",
118- // NormalizeOutputFunc: normalizeTesterOutput,
119- // },
57+ "pass_scanning_jlox" : {
58+ UntilStageSlug : "pq5" ,
59+ CodePath : "../craftinginterpreters/build/gen/chap04_scanning" ,
60+ ExpectedExitCode : 0 ,
61+ StdoutFixturePath : "./test_helpers/fixtures/pass_scanning" ,
62+ NormalizeOutputFunc : normalizeTesterOutput ,
63+ },
64+ "pass_parsing_jlox" : {
65+ StageSlugs : []string {"wz8" , "ht8" , "uh4" , "yf2" , "wa9" , "mq1" , "xe6" , "th5" , "ra8" , "sc2" },
66+ CodePath : "../craftinginterpreters/build/gen/chap06_parsing" ,
67+ ExpectedExitCode : 0 ,
68+ StdoutFixturePath : "./test_helpers/fixtures/pass_parsing" ,
69+ NormalizeOutputFunc : normalizeTesterOutput ,
70+ },
71+ "pass_evaluating_jlox" : {
72+ StageSlugs : []string {"ib5" , "cq1" , "yu6" , "gj9" , "hw7" , "et4" , "jx8" , "jy2" , "bp3" , "dc1" , "oq9" , "lv1" , "iz6" },
73+ CodePath : "../craftinginterpreters/build/gen/chap07_evaluating" ,
74+ ExpectedExitCode : 0 ,
75+ StdoutFixturePath : "./test_helpers/fixtures/pass_evaluating" ,
76+ NormalizeOutputFunc : normalizeTesterOutput ,
77+ },
78+ "pass_statements_inprogress_jlox" : {
79+ StageSlugs : []string {"xy1" , "oe4" , "fi3" , "yg2" , "sv7" , "bc1" , "dw9" , "pl3" , "vr5" , "fb4" },
80+ CodePath : "../craftinginterpreters/build/gen/chap08_statements" ,
81+ ExpectedExitCode : 0 ,
82+ StdoutFixturePath : "./test_helpers/fixtures/pass_statements" ,
83+ NormalizeOutputFunc : normalizeTesterOutput ,
84+ },
85+ "pass_statements_completed_jlox" : {
86+ StageSlugs : []string {"xy1" , "oe4" , "fi3" , "yg2" , "sv7" , "bc1" , "dw9" , "pl3" , "vr5" , "fb4" },
87+ CodePath : "../craftinginterpreters/build/gen/chap13_inheritance" ,
88+ ExpectedExitCode : 0 ,
89+ StdoutFixturePath : "./test_helpers/fixtures/pass_statements_final" ,
90+ NormalizeOutputFunc : normalizeTesterOutput ,
91+ },
92+ "pass_control_flow_inprogress_jlox" : {
93+ StageSlugs : []string {"ne3" , "st5" , "fh8" , "xj4" , "wk8" , "jx4" , "qy3" , "bw6" , "vt1" },
94+ CodePath : "../craftinginterpreters/build/gen/chap09_control" ,
95+ ExpectedExitCode : 0 ,
96+ StdoutFixturePath : "./test_helpers/fixtures/pass_control_flow" ,
97+ NormalizeOutputFunc : normalizeTesterOutput ,
98+ },
99+ "pass_control_flow_completed_jlox" : {
100+ StageSlugs : []string {"ne3" , "st5" , "fh8" , "xj4" , "wk8" , "jx4" , "qy3" , "bw6" , "vt1" },
101+ CodePath : "../craftinginterpreters/build/gen/chap13_inheritance" ,
102+ ExpectedExitCode : 0 ,
103+ StdoutFixturePath : "./test_helpers/fixtures/pass_control_flow_final" ,
104+ NormalizeOutputFunc : normalizeTesterOutput ,
105+ },
106+ "pass_functions_inprogress_jlox" : {
107+ StageSlugs : []string {"av4" , "pg8" , "lb6" , "px4" , "rd2" , "ey3" , "fj7" , "bz4" , "gg6" },
108+ CodePath : "../craftinginterpreters/build/gen/chap10_functions" ,
109+ ExpectedExitCode : 0 ,
110+ StdoutFixturePath : "./test_helpers/fixtures/pass_functions" ,
111+ NormalizeOutputFunc : normalizeTesterOutput ,
112+ },
113+ "pass_functions_completed_jlox" : {
114+ StageSlugs : []string {"av4" , "pg8" , "lb6" , "px4" , "rd2" , "ey3" , "fj7" , "bz4" , "gg6" },
115+ CodePath : "../craftinginterpreters/build/gen/chap13_inheritance" ,
116+ ExpectedExitCode : 0 ,
117+ StdoutFixturePath : "./test_helpers/fixtures/pass_functions_final" ,
118+ NormalizeOutputFunc : normalizeTesterOutput ,
119+ },
120120 }
121121
122122 tester_utils_testing .TestTesterOutput (t , testerDefinition , testCases )
0 commit comments