Skip to content

Commit

Permalink
[fix] Unit tests and mycpp/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy C committed Oct 29, 2024
1 parent 09b8b0b commit 2736350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions display/pretty_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Expect > 0
Input > -123
Expect > -123

Input > 123456789123456789123456789
Expect > 123456789123456789123456789
Input > 123456789123456789
Expect > 123456789123456789

Input > 0.0
Expect > 0.0
Expand Down
5 changes: 3 additions & 2 deletions mycpp/examples/test_integers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ def run_tests():
s1 = mops.ToStr(max_negative)
print('max_negative string = %s' % s1)

max_negative2 = mops.FromStr(s1)
ok, max_negative2 = mops.FromStr2(s1)
print('max_negative2 = %s' % mops.ToStr(max_negative2))
if ok:
print('ok')

#if max_negative == max_negative2:
if mops.Equal(max_negative, max_negative2):
print('round trip equal')

Expand Down

0 comments on commit 2736350

Please sign in to comment.