Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save timotheecour/515dde92cb29ce359a3f4b9546c247fd to your computer and use it in GitHub Desktop.
Save timotheecour/515dde92cb29ce359a3f4b9546c247fd to your computer and use it in GitHub Desktop.
## example 1
(note that it also shows an unrelated, pre-existing bug in std/tempfiles: the random generated strings are the same on windows: `C5xLA9E2`
```
2021-04-29T20:00:01.1496001Z --- "a/C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\diffStrings_a_C5xLA9E2"
2021-04-29T20:00:01.1507701Z +++ "b/C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\diffStrings_b_C5xLA9E2"
```
```
2021-04-29T20:00:01.1102831Z NOTINBATCH: tests/osproc/texitsignal.nim c
2021-04-29T20:00:01.1105015Z FAIL: tests/osproc/treadlines.nim c
2021-04-29T20:00:01.1116423Z Test "tests\osproc\treadlines.nim" in category "osproc"
2021-04-29T20:00:01.1131723Z Failure: reOutputsDiffer
2021-04-29T20:00:01.1133161Z Expected:
2021-04-29T20:00:01.1352876Z Error: cannot open 'a.nim'
2021-04-29T20:00:01.1355854Z PRTEMP FAKE
2021-04-29T20:00:01.1357822Z Error: cannot open 'b.nim'
2021-04-29T20:00:01.1441308Z
2021-04-29T20:00:01.1442760Z
2021-04-29T20:00:01.1448802Z Gotten:
2021-04-29T20:00:01.1450797Z Error: cannot open 'a.nim'
2021-04-29T20:00:01.1454033Z Error: cannot open 'b.nim'
2021-04-29T20:00:01.1463756Z
2021-04-29T20:00:01.1466017Z
2021-04-29T20:00:01.1480105Z diff --git "a/C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\diffStrings_a_C5xLA9E2" "b/C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\diffStrings_b_C5xLA9E2"
2021-04-29T20:00:01.1493853Z index a2c30e92..f76709ef 100644
2021-04-29T20:00:01.1496001Z --- "a/C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\diffStrings_a_C5xLA9E2"
2021-04-29T20:00:01.1507701Z +++ "b/C:\\Users\\VSSADM~1\\AppData\\Local\\Temp\\diffStrings_b_C5xLA9E2"
2021-04-29T20:00:01.1521739Z @@ -1,3 +1,2 @@
2021-04-29T20:00:01.1570388Z -Error: cannot open 'a.nim'
2021-04-29T20:00:01.1572921Z -PRTEMP FAKE
2021-04-29T20:00:01.1578433Z +Error: cannot open 'a.nim'
2021-04-29T20:00:01.1580236Z Error: cannot open 'b.nim'
2021-04-29T20:00:01.1649492Z
2021-04-29T20:00:01.1661159Z NOTINBATCH: tests/osproc/tworkingdir.nim c
```
## example 2
```
2021-04-29T19:54:25.2549070Z PASS: tests/osproc/texitsignal.nim c  ( 2.13 sec)
2021-04-29T19:54:25.2652360Z FAIL: tests/osproc/treadlines.nim c
2021-04-29T19:54:25.2755180Z Test "tests/osproc/treadlines.nim" in category "osproc"
2021-04-29T19:54:25.2855410Z Failure: reOutputsDiffer
2021-04-29T19:54:25.2948160Z Expected:
2021-04-29T19:54:25.2975720Z Error: cannot open 'a.nim'
2021-04-29T19:54:25.3075610Z PRTEMP FAKE
2021-04-29T19:54:25.3176870Z Error: cannot open 'b.nim'
2021-04-29T19:54:25.3205580Z
2021-04-29T19:54:25.3307960Z 
2021-04-29T19:54:25.3408540Z Gotten:
2021-04-29T19:54:25.3453010Z Error: cannot open 'a.nim'
2021-04-29T19:54:25.3475930Z Error: cannot open 'b.nim'
2021-04-29T19:54:25.3577430Z
2021-04-29T19:54:25.3578890Z 
2021-04-29T19:54:25.3580090Z diff --git a/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_a_hwBLPHC4 b/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_b_DrdgG5w0
2021-04-29T19:54:25.3583560Z index a2c30e92..f76709ef 100644
2021-04-29T19:54:25.3592220Z --- a/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_a_hwBLPHC4
2021-04-29T19:54:25.3724650Z +++ b/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_b_DrdgG5w0
2021-04-29T19:54:25.3789840Z @@ -1,3 +1,2 @@
2021-04-29T19:54:25.3795340Z -Error: cannot open 'a.nim'
2021-04-29T19:54:25.3893760Z -PRTEMP FAKE
2021-04-29T19:54:25.3897350Z +Error: cannot open 'a.nim'
2021-04-29T19:54:25.3946680Z Error: cannot open 'b.nim'
2021-04-29T19:54:25.3947620Z
2021-04-29T19:54:27.7340170Z PASS: tests/osproc/tworkingdir.nim c  ( 2.47 sec)
```
## example 3
```
2021-04-29T19:55:50.4875740Z FAIL: tests/concepts/tconcepts_issues.nim c
2021-04-29T19:55:50.4877020Z Test "tests/concepts/tconcepts_issues.nim" in category "concepts"
2021-04-29T19:55:50.4878260Z Failure: reOutputsDiffer
2021-04-29T19:55:50.4879360Z Expected:
2021-04-29T19:55:50.4880390Z 20.0 USD
2021-04-29T19:55:50.4881050Z Printable
2021-04-29T19:55:50.4881630Z true
2021-04-29T19:55:50.4882210Z true
2021-04-29T19:55:50.4882760Z true
2021-04-29T19:55:50.4883330Z true
2021-04-29T19:55:50.4883890Z true
2021-04-29T19:55:50.4884360Z f
2021-04-29T19:55:50.4885900Z 0
2021-04-29T19:55:50.4886550Z 10
2021-04-29T19:55:50.4887150Z 10
2021-04-29T19:55:50.4887730Z 5
2021-04-29T19:55:50.4888290Z ()
2021-04-29T19:55:50.4888880Z false
2021-04-29T19:55:50.4889460Z 10
2021-04-29T19:55:50.4890030Z true
2021-04-29T19:55:50.4890610Z true
2021-04-29T19:55:50.4891190Z true
2021-04-29T19:55:50.4891750Z true
2021-04-29T19:55:50.4893190Z p has been called. PRTEMP FAKE VAL to show effect of diffStrings
2021-04-29T19:55:50.4894800Z p has been called.
2021-04-29T19:55:50.4895430Z implicit generic
2021-04-29T19:55:50.4896050Z generic
2021-04-29T19:55:50.4896640Z false
2021-04-29T19:55:50.4897200Z true
2021-04-29T19:55:50.4898310Z -1
2021-04-29T19:55:50.4898970Z Meow
2021-04-29T19:55:50.4899360Z
2021-04-29T19:55:50.4900300Z 
2021-04-29T19:55:50.4901310Z Gotten:
2021-04-29T19:55:50.4902350Z 20.0 USD
2021-04-29T19:55:50.4903030Z Printable
2021-04-29T19:55:50.4903600Z true
2021-04-29T19:55:50.4904180Z true
2021-04-29T19:55:50.4904750Z true
2021-04-29T19:55:50.4905310Z true
2021-04-29T19:55:50.4906270Z true
2021-04-29T19:55:50.4906840Z f
2021-04-29T19:55:50.4907380Z 0
2021-04-29T19:55:50.4907950Z 10
2021-04-29T19:55:50.4908500Z 10
2021-04-29T19:55:50.4909050Z 5
2021-04-29T19:55:50.4909620Z ()
2021-04-29T19:55:50.4910180Z false
2021-04-29T19:55:50.4910730Z 10
2021-04-29T19:55:50.4911290Z true
2021-04-29T19:55:50.4911860Z true
2021-04-29T19:55:50.4912420Z true
2021-04-29T19:55:50.4913010Z true
2021-04-29T19:55:50.4913610Z p has been called.
2021-04-29T19:55:50.4914220Z p has been called.
2021-04-29T19:55:50.4915450Z implicit generic
2021-04-29T19:55:50.4916170Z generic
2021-04-29T19:55:50.4916740Z false
2021-04-29T19:55:50.4917310Z true
2021-04-29T19:55:50.4918360Z -1
2021-04-29T19:55:50.4918990Z Meow
2021-04-29T19:55:50.4919370Z
2021-04-29T19:55:50.4920280Z 
2021-04-29T19:55:50.4921700Z diff --git a/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_a_Nzi3GGbJ b/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_b_4fAFNFco
2021-04-29T19:55:50.4922690Z index aebdaa0e..f03df01d 100644
2021-04-29T19:55:50.4923870Z --- a/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_a_Nzi3GGbJ
2021-04-29T19:55:50.4924800Z +++ b/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/diffStrings_b_4fAFNFco
2021-04-29T19:55:50.4925900Z @@ -17,7 +17,7 @@ true
2021-04-29T19:55:50.4926560Z true
2021-04-29T19:55:50.4927140Z true
2021-04-29T19:55:50.4928240Z true
2021-04-29T19:55:50.4929400Z -p has been called. PRTEMP FAKE VAL to show effect of diffStrings
2021-04-29T19:55:50.4930200Z +p has been called.
2021-04-29T19:55:50.4930850Z p has been called.
2021-04-29T19:55:50.4931470Z implicit generic
2021-04-29T19:55:50.4932080Z generic
2021-04-29T19:55:50.4932800Z
2021-04-29T19:55:51.4049960Z PASS: tests/testament/t16576.nim c  ( 0.84 sec)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment