Update upstream source from tag 'upstream/0.0+git20220105.0d6df3d'
Update to upstream version '0.0+git20220105.0d6df3d'
with Debian dir 087ead61eb44b1be8863cdc257c1ba74fc7be3e5
Nilesh Patra
1 year, 10 months ago
0 | site/ |
49 | 49 | |
50 | 50 | run a block of code. This must precede any of the testing functions below. |
51 | 51 | |
52 | ###Arguments | |
52 | ### Arguments | |
53 | 53 | |
54 | 54 | + name for test. |
55 | 55 | + code to run |
60 | 60 | Assert that 2 things are equal. |
61 | 61 | This does a string comparison so assert_equal "2" " 2" will fail. |
62 | 62 | |
63 | ###Arguments | |
63 | ### Arguments | |
64 | 64 | |
65 | 65 | + observed |
66 | 66 | + expected |
89 | 89 | assert_in_stdout "zzz" |
90 | 90 | ``` |
91 | 91 | |
92 | ###Arguments | |
92 | ### Arguments | |
93 | 93 | |
94 | 94 | + text to match |
95 | 95 | |
120 | 120 | |
121 | 121 | Assert that stderr out contains this text. |
122 | 122 | |
123 | ###Arguments | |
123 | ### Arguments | |
124 | 124 | |
125 | 125 | + text to match |
126 | 126 | |
144 | 144 | |
145 | 145 | Assert that the program exited with a particular code |
146 | 146 | |
147 | ###Arguments | |
147 | ### Arguments | |
148 | 148 | |
149 | 149 | + exit code |
150 | 150 |