From d2810f278997a65f12caed08cebb4cc2eb95365d Mon Sep 17 00:00:00 2001 From: collin Date: Thu, 10 Sep 2020 11:18:49 -0700 Subject: [PATCH] fix tests --- compiler/tests/array/output/registers_ones.out | 2 +- compiler/tests/array/output/registers_zeros.out | 2 +- compiler/tests/function/output/newlines.out | 4 ++-- compiler/tests/statements/conditional/mod.rs | 4 ++-- .../tests/statements/conditional/output/registers_one.out | 2 ++ .../tests/statements/conditional/output/registers_zero.out | 2 ++ .../tests/statements/conditional/output_/registers_one.out | 2 -- .../tests/statements/conditional/output_/registers_zero.out | 2 -- 8 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 compiler/tests/statements/conditional/output/registers_one.out create mode 100644 compiler/tests/statements/conditional/output/registers_zero.out delete mode 100644 compiler/tests/statements/conditional/output_/registers_one.out delete mode 100644 compiler/tests/statements/conditional/output_/registers_zero.out diff --git a/compiler/tests/array/output/registers_ones.out b/compiler/tests/array/output/registers_ones.out index d7aaafed88..c6a97c7fd7 100644 --- a/compiler/tests/array/output/registers_ones.out +++ b/compiler/tests/array/output/registers_ones.out @@ -1,2 +1,2 @@ [registers] -r: [u8; (3)] = [1u8, 1u8, 1u8]; +r: [u8; (3)] = [1, 1, 1]; diff --git a/compiler/tests/array/output/registers_zeros.out b/compiler/tests/array/output/registers_zeros.out index d6278e3b69..e8c21bb46a 100644 --- a/compiler/tests/array/output/registers_zeros.out +++ b/compiler/tests/array/output/registers_zeros.out @@ -1,2 +1,2 @@ [registers] -r: [u8; (3)] = [0u8, 0u8, 0u8]; +r: [u8; (3)] = [0, 0, 0]; diff --git a/compiler/tests/function/output/newlines.out b/compiler/tests/function/output/newlines.out index e6563e6a1b..197a64cc63 100644 --- a/compiler/tests/function/output/newlines.out +++ b/compiler/tests/function/output/newlines.out @@ -1,3 +1,3 @@ [registers] -a: u32 = 0u32; -b: u32 = 0u32; +a: u32 = 0; +b: u32 = 0; diff --git a/compiler/tests/statements/conditional/mod.rs b/compiler/tests/statements/conditional/mod.rs index 532dbbff7d..9b6ae2fe2b 100644 --- a/compiler/tests/statements/conditional/mod.rs +++ b/compiler/tests/statements/conditional/mod.rs @@ -190,14 +190,14 @@ fn test_nested() { } fn output_one(program: EdwardsTestCompiler) { - let expected = include_bytes!("output_/registers_one.out"); + let expected = include_bytes!("output/registers_one.out"); let actual = get_output(program); assert_eq!(expected, actual.bytes().as_slice()); } fn output_zero(program: EdwardsTestCompiler) { - let expected = include_bytes!("output_/registers_zero.out"); + let expected = include_bytes!("output/registers_zero.out"); let actual = get_output(program); assert_eq!(expected, actual.bytes().as_slice()); diff --git a/compiler/tests/statements/conditional/output/registers_one.out b/compiler/tests/statements/conditional/output/registers_one.out new file mode 100644 index 0000000000..be39f343fa --- /dev/null +++ b/compiler/tests/statements/conditional/output/registers_one.out @@ -0,0 +1,2 @@ +[registers] +a: u32 = 1; diff --git a/compiler/tests/statements/conditional/output/registers_zero.out b/compiler/tests/statements/conditional/output/registers_zero.out new file mode 100644 index 0000000000..ae20e35199 --- /dev/null +++ b/compiler/tests/statements/conditional/output/registers_zero.out @@ -0,0 +1,2 @@ +[registers] +a: u32 = 0; diff --git a/compiler/tests/statements/conditional/output_/registers_one.out b/compiler/tests/statements/conditional/output_/registers_one.out deleted file mode 100644 index 663014ef39..0000000000 --- a/compiler/tests/statements/conditional/output_/registers_one.out +++ /dev/null @@ -1,2 +0,0 @@ -[registers] -a: u32 = 1u32; diff --git a/compiler/tests/statements/conditional/output_/registers_zero.out b/compiler/tests/statements/conditional/output_/registers_zero.out deleted file mode 100644 index fb12d4d334..0000000000 --- a/compiler/tests/statements/conditional/output_/registers_zero.out +++ /dev/null @@ -1,2 +0,0 @@ -[registers] -a: u32 = 0u32;