[Gambas-bugtracker] Bug #2667: CShort in GambasSelfTest fails

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Dec 20 10:24:07 CET 2022


http://gambaswiki.org/bugtracker/edit?object=BUG.2667&from=L21haW4-

Comment #3 by Christof THALHOFER:

Sorry that I have to insist that it's still a bug because the test tests the documented behavior:

http://gambaswiki.org/wiki/lang/cshort

So it's a bug in the documentation and should be fixed there as well as the test itself.

If Gambas should throw an overflow error in future we can implement it in the tests as TODO.

For example in this way:

    Test.TODO("Expected error, that an overflow happened")
    Dim siBuf As Short
    siBuf = CShort(100000)
    Assert.Error()

Christof THALHOFER changed the state of the bug to: Opened.




More information about the Bugtracker mailing list