Skip to content

Commit 14736b5

Browse files
committed
Fix tests. Remove dependency on seq.
In the future other pretty printing primitives might be provided or used.
1 parent 64694c4 commit 14736b5

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

test/test-custom.expected

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,50 @@
77

88
<PASSED::>Just passed
99

10-
<COMPLETEDIN::>0.129834 ms
10+
<COMPLETEDIN::>0.140822 ms
1111

1212
<IT::>failing compares
1313

1414
<FAILED::>Just failed
1515

1616
<FAILED::>Just failed
1717

18-
<COMPLETEDIN::>0.076824 ms
18+
<COMPLETEDIN::>0.068695 ms
1919

2020
<IT::>short strings
2121

2222
<PASSED::>Test passed
2323

2424
<PASSED::>Test passed
2525

26-
<COMPLETEDIN::>0.025016 ms
26+
<COMPLETEDIN::>0.026218 ms
2727

2828
<IT::>failing compares
2929

30-
<FAILED::>Actually expected :<:LF:>"Hello Worlds!"<:LF:>but instead got :<:LF:>"Hello World!"
30+
<FAILED::>Actually expected :{ "Hello Worlds!" }<:LF:><:LF:>but instead got :{ "Hello World!" }
3131

32-
<FAILED::>Actually expected :<:LF:>"Hello Worlds! "<:LF:>but instead got :<:LF:>"Hello Worlds!"
3332

34-
<COMPLETEDIN::>0.162660 ms
33+
<FAILED::>Actually expected :{ "Hello Worlds! " }<:LF:><:LF:>but instead got :{ "Hello Worlds!" }
34+
35+
36+
<COMPLETEDIN::>0.336267 ms
3537

3638
<IT::>short strings
3739

3840
<PASSED::>Test Passed
3941

4042
<PASSED::>Test Passed
4143

42-
<COMPLETEDIN::>0.026153 ms
44+
<COMPLETEDIN::>0.047432 ms
4345

4446
<IT::>failing compares
4547

46-
<FAILED::>Test Failed : Actually expected :<:LF:>"Hello Worlds!"<:LF:>but instead got :<:LF:>"Hello World!"
48+
<FAILED::>Test Failed : Actually expected :{ "Hello Worlds!" }<:LF:><:LF:>but instead got :{ "Hello World!" }
49+
50+
51+
<FAILED::>Test Failed : Actually expected :{ "Hello Worlds! " }<:LF:><:LF:>but instead got :{ "Hello Worlds!" }
4752

48-
<FAILED::>Test Failed : Actually expected :<:LF:>"Hello Worlds! "<:LF:>but instead got :<:LF:>"Hello Worlds!"
4953

50-
<COMPLETEDIN::>0.055392 ms
54+
<COMPLETEDIN::>0.086214 ms
5155

52-
<COMPLETEDIN::>0.726864 ms
56+
<COMPLETEDIN::>0.922141 ms

test/test-custom.factor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
! Copyright 2019 nomennescio
1+
! Copyright 2019-2022 nomennescio
22

3-
USING: accessors debugger io kernel namespaces sequences tools.testest ;
3+
USING: accessors debugger io kernel namespaces prettyprint sequences tools.testest ;
44
IN: tests
55

66
M: assert-sequence error.
7-
[ "Actually expected :" write expected>> seq. ]
8-
[ lf "but instead got :" write got>> seq. ] bi
7+
[ "Actually expected :" write expected>> ... ]
8+
[ lf "but instead got :" write got>> ... ] bi
99
;
1010

1111
: run-test ( -- )

0 commit comments

Comments
 (0)