Skip to content

Commit

Permalink
Add one more test for floats
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Jul 29, 2022
1 parent 63f1729 commit 047cbbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_printer/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class MyInput:
i: int = 0
b: bool = False
f: float = 0.0
f2: float = 0.1
id: strawberry.ID = strawberry.ID("some_id")
id_number: strawberry.ID = strawberry.ID(123) # type: ignore
id_number_string: strawberry.ID = strawberry.ID("123")
Expand All @@ -161,6 +162,7 @@ def search(self, input: MyInput) -> int:
i: Int! = 0
b: Boolean! = false
f: Float! = 0
f2: Float! = 0.1
id: ID! = "some_id"
idNumber: ID! = 123
idNumberString: ID! = 123
Expand Down

0 comments on commit 047cbbb

Please sign in to comment.