Merge pull request #1782 from AleoHQ/tests-block-comments

[tests] Consistently use block comments.
This commit is contained in:
Collin Chin 2022-05-03 13:29:57 -07:00 committed by GitHub
commit 99ff4178be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 42 deletions

View File

@ -1,14 +1,16 @@
// namespace: Compile
// expectation: Pass
// inputs:
// - i16.in: |
// [main]
// a: i16 = 2;
// b: i16 = 2;
// c: i16 = 4;
// [registers]
// r0: bool = true;
/*
namespace: Compile
expectation: Pass
inputs:
- i16.in: |
[main]
a: i16 = 2;
b: i16 = 2;
c: i16 = 4;
[registers]
r0: bool = true;
*/
function main(a: i16, b: i16, c: i16) -> bool {
return a ** b == c;

View File

@ -1,14 +1,16 @@
// namespace: Compile
// expectation: Pass
// inputs:
// - i8.in: |
// [main]
// a: i8 = 2;
// b: i8 = 2;
// c: i8 = 4;
// [registers]
// r0: bool = true;
/*
namespace: Compile
expectation: Pass
inputs:
- i8.in: |
[main]
a: i8 = 2;
b: i8 = 2;
c: i8 = 4;
[registers]
r0: bool = true;
*/
function main(a: i8, b: i8, c: i8) -> bool {
return a ** b == c;

View File

@ -1,14 +1,16 @@
// namespace: Compile
// expectation: Pass
// inputs:
// - u16_f.in: |
// [main]
// a: u16 = 2;
// b: u16 = 2;
// c: u16 = 4;
/*
namespace: Compile
expectation: Pass
inputs:
- u16_f.in: |
[main]
a: u16 = 2;
b: u16 = 2;
c: u16 = 4;
// [registers]
// r0: bool = true;
[registers]
r0: bool = true;
*/
function main(a: u16, b: u16, c: u16) -> bool {
return a ** b == c;

View File

@ -1,14 +1,16 @@
// namespace: Compile
// expectation: Pass
// inputs:
// - u8_f.in: |
// [main]
// a: u8 = 2;
// b: u8 = 2;
// c: u8 = 4;
/*
namespace: Compile
expectation: Pass
inputs:
- u8_f.in: |
[main]
a: u8 = 2;
b: u8 = 2;
c: u8 = 4;
// [registers]
// r0: bool = true;
[registers]
r0: bool = true;
*/
function main(a: u8, b: u8, c: u8) -> bool {
return a ** b == c;