Skip to content

Commit 66a4d4c

Browse files
committed
ci: add regenerated fixtures
1 parent 9f058fc commit 66a4d4c

File tree

2 files changed

+16
-38
lines changed

2 files changed

+16
-38
lines changed

internal/test_helpers/fixtures/pass_functions

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ Debug = true
55
[tester::#AV4] [test-1] Writing contents to ./test.lox:
66
[tester::#AV4] [test-1.lox] print clock() + 23;
77
[tester::#AV4] [test-1] $ ./your_program.sh run test.lox
8-
[your_program] 1.75019176479E9
9-
[tester::#AV4] [test-1] ✓ 1750191764.790000
8+
[your_program] 1.753116123634E9
9+
[tester::#AV4] [test-1] ✓ 1753116123.634000
1010
[tester::#AV4] [test-1] ✓ 1 line(s) match on stdout
1111
[tester::#AV4] [test-1] ✓ Received exit code 0.
1212
[tester::#AV4] [test-2] Running test case: 2
1313
[tester::#AV4] [test-2] Writing contents to ./test.lox:
1414
[tester::#AV4] [test-2.lox] print clock() / 1000;
1515
[tester::#AV4] [test-2] $ ./your_program.sh run test.lox
16-
[your_program] 1750191.741841
17-
[tester::#AV4] [test-2] ✓ 1750191.741841
16+
[your_program] 1753116.100685
17+
[tester::#AV4] [test-2] ✓ 1753116.100685
1818
[tester::#AV4] [test-2] ✓ 1 line(s) match on stdout
1919
[tester::#AV4] [test-2] ✓ Received exit code 0.
2020
[tester::#AV4] [test-3] Running test case: 3
@@ -372,9 +372,9 @@ Debug = true
372372
[tester::#EY3] [test-4.lox] // This program creates a function that returns
373373
[tester::#EY3] [test-4.lox] // another function
374374
[tester::#EY3] [test-4.lox] // and uses it to filter a list of numbers
375-
[tester::#EY3] [test-4.lox] fun makeFilter(min) {
375+
[tester::#EY3] [test-4.lox] fun makeFilter() {
376376
[tester::#EY3] [test-4.lox]  fun filter(n) {
377-
[tester::#EY3] [test-4.lox]  if (n < min) {
377+
[tester::#EY3] [test-4.lox]  if (n < 54) {
378378
[tester::#EY3] [test-4.lox]  return false;
379379
[tester::#EY3] [test-4.lox]  }
380380
[tester::#EY3] [test-4.lox]  return true;
@@ -394,14 +394,10 @@ Debug = true
394394
[tester::#EY3] [test-4.lox]  }
395395
[tester::#EY3] [test-4.lox] }
396396
[tester::#EY3] [test-4.lox] 
397-
[tester::#EY3] [test-4.lox] var greaterThanX = makeFilter(54);
398-
[tester::#EY3] [test-4.lox] var greaterThanY = makeFilter(44);
397+
[tester::#EY3] [test-4.lox] var greaterThanX = makeFilter();
399398
[tester::#EY3] [test-4.lox] 
400399
[tester::#EY3] [test-4.lox] print "Numbers >= 54:";
401400
[tester::#EY3] [test-4.lox] applyToNumbers(greaterThanX, 54 + 6);
402-
[tester::#EY3] [test-4.lox] 
403-
[tester::#EY3] [test-4.lox] print "Numbers >= 44:";
404-
[tester::#EY3] [test-4.lox] applyToNumbers(greaterThanY, 44 + 6);
405401
[tester::#EY3] [test-4] $ ./your_program.sh run test.lox
406402
[your_program] Numbers >= 54:
407403
[your_program] 54
@@ -410,14 +406,7 @@ Debug = true
410406
[your_program] 57
411407
[your_program] 58
412408
[your_program] 59
413-
[your_program] Numbers >= 44:
414-
[your_program] 44
415-
[your_program] 45
416-
[your_program] 46
417-
[your_program] 47
418-
[your_program] 48
419-
[your_program] 49
420-
[tester::#EY3] [test-4] ✓ 14 line(s) match on stdout
409+
[tester::#EY3] [test-4] ✓ 7 line(s) match on stdout
421410
[tester::#EY3] [test-4] ✓ Received exit code 0.
422411
[tester::#EY3] Test passed.
423412

internal/test_helpers/fixtures/pass_functions_final

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ Debug = true
55
[tester::#AV4] [test-1] Writing contents to ./test.lox:
66
[tester::#AV4] [test-1.lox] print clock() + 23;
77
[tester::#AV4] [test-1] $ ./your_program.sh run test.lox
8-
[your_program] 1.750191785202E9
9-
[tester::#AV4] [test-1] ✓ 1750191785.202000
8+
[your_program] 1.753116113038E9
9+
[tester::#AV4] [test-1] ✓ 1753116113.038000
1010
[tester::#AV4] [test-1] ✓ 1 line(s) match on stdout
1111
[tester::#AV4] [test-1] ✓ Received exit code 0.
1212
[tester::#AV4] [test-2] Running test case: 2
1313
[tester::#AV4] [test-2] Writing contents to ./test.lox:
1414
[tester::#AV4] [test-2.lox] print clock() / 1000;
1515
[tester::#AV4] [test-2] $ ./your_program.sh run test.lox
16-
[your_program] 1750191.762257
17-
[tester::#AV4] [test-2] ✓ 1750191.762257
16+
[your_program] 1753116.0900899998
17+
[tester::#AV4] [test-2] ✓ 1753116.090090
1818
[tester::#AV4] [test-2] ✓ 1 line(s) match on stdout
1919
[tester::#AV4] [test-2] ✓ Received exit code 0.
2020
[tester::#AV4] [test-3] Running test case: 3
@@ -372,9 +372,9 @@ Debug = true
372372
[tester::#EY3] [test-4.lox] // This program creates a function that returns
373373
[tester::#EY3] [test-4.lox] // another function
374374
[tester::#EY3] [test-4.lox] // and uses it to filter a list of numbers
375-
[tester::#EY3] [test-4.lox] fun makeFilter(min) {
375+
[tester::#EY3] [test-4.lox] fun makeFilter() {
376376
[tester::#EY3] [test-4.lox]  fun filter(n) {
377-
[tester::#EY3] [test-4.lox]  if (n < min) {
377+
[tester::#EY3] [test-4.lox]  if (n < 54) {
378378
[tester::#EY3] [test-4.lox]  return false;
379379
[tester::#EY3] [test-4.lox]  }
380380
[tester::#EY3] [test-4.lox]  return true;
@@ -394,14 +394,10 @@ Debug = true
394394
[tester::#EY3] [test-4.lox]  }
395395
[tester::#EY3] [test-4.lox] }
396396
[tester::#EY3] [test-4.lox] 
397-
[tester::#EY3] [test-4.lox] var greaterThanX = makeFilter(54);
398-
[tester::#EY3] [test-4.lox] var greaterThanY = makeFilter(44);
397+
[tester::#EY3] [test-4.lox] var greaterThanX = makeFilter();
399398
[tester::#EY3] [test-4.lox] 
400399
[tester::#EY3] [test-4.lox] print "Numbers >= 54:";
401400
[tester::#EY3] [test-4.lox] applyToNumbers(greaterThanX, 54 + 6);
402-
[tester::#EY3] [test-4.lox] 
403-
[tester::#EY3] [test-4.lox] print "Numbers >= 44:";
404-
[tester::#EY3] [test-4.lox] applyToNumbers(greaterThanY, 44 + 6);
405401
[tester::#EY3] [test-4] $ ./your_program.sh run test.lox
406402
[your_program] Numbers >= 54:
407403
[your_program] 54
@@ -410,14 +406,7 @@ Debug = true
410406
[your_program] 57
411407
[your_program] 58
412408
[your_program] 59
413-
[your_program] Numbers >= 44:
414-
[your_program] 44
415-
[your_program] 45
416-
[your_program] 46
417-
[your_program] 47
418-
[your_program] 48
419-
[your_program] 49
420-
[tester::#EY3] [test-4] ✓ 14 line(s) match on stdout
409+
[tester::#EY3] [test-4] ✓ 7 line(s) match on stdout
421410
[tester::#EY3] [test-4] ✓ Received exit code 0.
422411
[tester::#EY3] Test passed.
423412

0 commit comments

Comments
 (0)