mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Change outdated filename in langref
This commit is contained in:
parent
a10ddba921
commit
e95fc2023f
1 changed files with 2 additions and 2 deletions
|
|
@ -1066,7 +1066,7 @@ fn addOne(number: i32) i32 {
|
||||||
}
|
}
|
||||||
{#code_end#}
|
{#code_end#}
|
||||||
<p>
|
<p>
|
||||||
The <code class="file">introducing_zig_test.zig</code> code sample tests the {#link|function|Functions#}
|
The <code class="file">testing_introduction.zig</code> code sample tests the {#link|function|Functions#}
|
||||||
{#syntax#}addOne{#endsyntax#} to ensure that it returns {#syntax#}42{#endsyntax#} given the input
|
{#syntax#}addOne{#endsyntax#} to ensure that it returns {#syntax#}42{#endsyntax#} given the input
|
||||||
{#syntax#}41{#endsyntax#}. From this test's perspective, the {#syntax#}addOne{#endsyntax#} function is
|
{#syntax#}41{#endsyntax#}. From this test's perspective, the {#syntax#}addOne{#endsyntax#} function is
|
||||||
said to be <em>code under test</em>.
|
said to be <em>code under test</em>.
|
||||||
|
|
@ -1138,7 +1138,7 @@ const std = @import("std");
|
||||||
const expect = std.testing.expect;
|
const expect = std.testing.expect;
|
||||||
|
|
||||||
// Imported source file tests will run when referenced from a top-level test declaration.
|
// Imported source file tests will run when referenced from a top-level test declaration.
|
||||||
// The next line alone does not cause "introducing_zig_test.zig" tests to run.
|
// The next line alone does not cause "testing_introduction.zig" tests to run.
|
||||||
const imported_file = @import("testing_introduction.zig");
|
const imported_file = @import("testing_introduction.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue