Skip to content

Commit

Permalink
move js test to general logic value test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorbel1 committed Dec 13, 2023
1 parent 9c4462b commit 71903af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
24 changes: 0 additions & 24 deletions test/js_test.dart

This file was deleted.

11 changes: 11 additions & 0 deletions test/logic_value_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1969,4 +1969,15 @@ void main() {
expect(oneSllBy(32), 0x100000000);
expect(oneSllBy(52), 0x10000000000000);
});

test('precision adjustment handled for all widths', () {
for (var i = 1; i < 100; i++) {
expect(
LogicValue.of('${'1' * i}0'),
[
LogicValue.ofBigInt(BigInt.parse('1' * i, radix: 2), i),
LogicValue.zero
].swizzle());
}
});
}

0 comments on commit 71903af

Please sign in to comment.