8000 tests · RustPython/RustPython@9e4a08a · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9e4a08a

Browse files
committed
tests
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent 1f3a967 commit 9e4a08a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

extra_tests/snippets/builtin_bytes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,5 +667,7 @@ def __new__(cls, value):
667667
return me
668668
b = B1.fromhex('a0a1a2')
669669
assert b.foo == 'bar'
670+
import sys
671+
assert b'-\xff'.decode(sys.getfilesystemencoding(), 'surrogateescape') == '-\udcff'
670672

671673
skip_if_unsupported(3,11,test__bytes__)

extra_tests/snippets/stdlib_math.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,5 @@ def assertAllNotClose(examples, *args, **kwargs):
291291
assert math.fmod(-3.0, NINF) == -3.0
292292
assert math.fmod(0.0, 3.0) == 0.0
293293
assert math.fmod(0.0, NINF) == 0.0
294+
295+
assert math.gamma(1) == 1.0

0 commit comments

Comments
 (0)
0