Skip to content

Commit

Permalink
Unit test invalid negative literals
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Jun 2, 2024
1 parent 6d32e13 commit ebd5013
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Test/AssemblerTests/InvalidStatements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void InvalidNumericLiterals()
_ = Assert.ThrowsException<SyntaxError>(() => Assembler.AssembleStatement("ADD", new[] { "rg0", "0b" }));
_ = Assert.ThrowsException<SyntaxError>(() => Assembler.AssembleStatement("ADD", new[] { "rg0", "_" }));
_ = Assert.ThrowsException<OperandException>(() => Assembler.AssembleStatement("ADD", new[] { "rg0", "18446744073709551616" }));
_ = Assert.ThrowsException<OperandException>(() => Assembler.AssembleStatement("ADD", new[] { "rg0", "-18446744073709551613" }));
}

[TestMethod]
Expand Down

0 comments on commit ebd5013

Please sign in to comment.