| ... | ... | @@ -1066,7 +1066,7 @@ fn addOne(number: i32) i32 { |
| 1066 | 1066 | } |
| 1067 | 1067 | {#code_end#} |
| 1068 | 1068 | <p> |
| 1069 | | The <code class="file">introducing_zig_test.zig</code> code sample tests the {#link|function|Functions#} |
| 1069 | The <code class="file">testing_introduction.zig</code> code sample tests the {#link|function|Functions#} |
| 1070 | 1070 | {#syntax#}addOne{#endsyntax#} to ensure that it returns {#syntax#}42{#endsyntax#} given the input |
| 1071 | 1071 | {#syntax#}41{#endsyntax#}. From this test's perspective, the {#syntax#}addOne{#endsyntax#} function is |
| 1072 | 1072 | said to be <em>code under test</em>. |
| ... | ... | @@ -1138,7 +1138,7 @@ const std = @import("std"); |
| 1138 | 1138 | const expect = std.testing.expect; |
| 1139 | 1139 | |
| 1140 | 1140 | // Imported source file tests will run when referenced from a top-level test declaration. |
| 1141 | | // The next line alone does not cause "introducing_zig_test.zig" tests to run. |
| 1141 | // The next line alone does not cause "testing_introduction.zig" tests to run. |
| 1142 | 1142 | const imported_file = @import("testing_introduction.zig"); |
| 1143 | 1143 | |
| 1144 | 1144 | test { |