aboutsummaryrefslogtreecommitdiff
path: root/std/special/compiler_rt/multi3_test.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-25 23:35:41 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-25 23:35:41 -0400
commited36dbbd9c9dc21b2eebae1b31586fea1c6b51c3 (patch)
tree317ff9db438e8f1a2cd42b42b077071b07492256 /std/special/compiler_rt/multi3_test.zig
parent6128bc728d1e1024a178c16c2149f5b1a167a013 (diff)
downloadzig-ed36dbbd9c9dc21b2eebae1b31586fea1c6b51c3.tar.gz
zig-ed36dbbd9c9dc21b2eebae1b31586fea1c6b51c3.zip
mv std/ lib/
that's all this commit does. further commits will fix cli flags and such. see #2221
Diffstat (limited to 'std/special/compiler_rt/multi3_test.zig')
-rw-r--r--std/special/compiler_rt/multi3_test.zig53
1 files changed, 0 insertions, 53 deletions
diff --git a/std/special/compiler_rt/multi3_test.zig b/std/special/compiler_rt/multi3_test.zig
deleted file mode 100644
index 92c580e20f..0000000000
--- a/std/special/compiler_rt/multi3_test.zig
+++ /dev/null
@@ -1,53 +0,0 @@
-const __multi3 = @import("multi3.zig").__multi3;
-const testing = @import("std").testing;
-
-fn test__multi3(a: i128, b: i128, expected: i128) void {
- const x = __multi3(a, b);
- testing.expect(x == expected);
-}
-
-test "multi3" {
- test__multi3(0, 0, 0);
- test__multi3(0, 1, 0);
- test__multi3(1, 0, 0);
- test__multi3(0, 10, 0);
- test__multi3(10, 0, 0);
- test__multi3(0, 81985529216486895, 0);
- test__multi3(81985529216486895, 0, 0);
-
- test__multi3(0, -1, 0);
- test__multi3(-1, 0, 0);
- test__multi3(0, -10, 0);
- test__multi3(-10, 0, 0);
- test__multi3(0, -81985529216486895, 0);
- test__multi3(-81985529216486895, 0, 0);
-
- test__multi3(1, 1, 1);
- test__multi3(1, 10, 10);
- test__multi3(10, 1, 10);
- test__multi3(1, 81985529216486895, 81985529216486895);
- test__multi3(81985529216486895, 1, 81985529216486895);
-
- test__multi3(1, -1, -1);
- test__multi3(1, -10, -10);
- test__multi3(-10, 1, -10);
- test__multi3(1, -81985529216486895, -81985529216486895);
- test__multi3(-81985529216486895, 1, -81985529216486895);
-
- test__multi3(3037000499, 3037000499, 9223372030926249001);
- test__multi3(-3037000499, 3037000499, -9223372030926249001);
- test__multi3(3037000499, -3037000499, -9223372030926249001);
- test__multi3(-3037000499, -3037000499, 9223372030926249001);
-
- test__multi3(4398046511103, 2097152, 9223372036852678656);
- test__multi3(-4398046511103, 2097152, -9223372036852678656);
- test__multi3(4398046511103, -2097152, -9223372036852678656);
- test__multi3(-4398046511103, -2097152, 9223372036852678656);
-
- test__multi3(2097152, 4398046511103, 9223372036852678656);
- test__multi3(-2097152, 4398046511103, -9223372036852678656);
- test__multi3(2097152, -4398046511103, -9223372036852678656);
- test__multi3(-2097152, -4398046511103, 9223372036852678656);
-
- test__multi3(0x00000000000000B504F333F9DE5BE000, 0x000000000000000000B504F333F9DE5B, 0x7FFFFFFFFFFFF328DF915DA296E8A000);
-}