Skip to content

Commit

Permalink
Remove accidental change to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders429 committed Jun 6, 2024
1 parent f90a89e commit 2a20e36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
Binary file removed tests/pass/gba_test
Binary file not shown.
27 changes: 1 addition & 26 deletions tests/pass/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,8 @@ mod tests {
use gba_test::test;

#[test]
fn basic_add() {
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}

#[test]
fn chained_add() {
let result = add(2, 2);
let result2 = add(result, 2);
assert_eq!(result2, 6);
}

#[test]
fn zero() {
let result = add(2, 1);
assert_eq!(result, 2);
}

#[test]
fn zeros() {
let result = add(0, 0);
assert_eq!(result, 0);
}

#[test]
#[should_panic]
fn overflow() {
let result = add(usize::MAX, usize::MAX);
}
}

0 comments on commit 2a20e36

Please sign in to comment.