-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix bug when float is 'round' 1.0 2.0 ...
- Loading branch information
Showing
3 changed files
with
72 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ def insert_query(): | |
has email "[email protected]", | ||
has nickname "test", | ||
has age 33, | ||
has height 1.75, | ||
has height 1.00, | ||
has alive true, | ||
has birth-date 1990-06-01; | ||
$person2 isa person, | ||
|
@@ -250,7 +250,7 @@ def test_ros_typedb_fetch_query_attribute(insert_query): | |
r.value.integer_value == 33: | ||
correct_age = True | ||
if r.name == 'height' and r.label == 'height' and \ | ||
r.value.double_value == 1.75: | ||
r.value.double_value == 1.0: | ||
correct_height = True | ||
if r.name == 'alive' and r.label == 'alive' and \ | ||
r.value.bool_value is True: | ||
|