Skip to content

Commit

Permalink
autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Sep 30, 2023
1 parent 476c676 commit 325302b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/adana_script/tests/bitwise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,11 @@ fn bitwise_xor_test() {
let r = compute(r#"-98$1"#, &mut ctx, "N/A").unwrap();
assert_eq!(r, Primitive::I8(-97));
}

#[test]
fn bitwise_not() {
let mut ctx = BTreeMap::new();

let r = compute(r#"~255"#, &mut ctx, "N/A").unwrap();
assert_eq!(r, Primitive::Int(-256));
}

0 comments on commit 325302b

Please sign in to comment.