FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-rapidjson/tests/test_enum.py at master · python-rapidjson/python-rapidjson · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-rapidjson
/
python-rapidjson
Public
Notifications
You must be signed in to change notification settings
Fork
53
Star
532
Code
Issues
18
Pull requests
4
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-rapidjson
/
tests
/
test_enum.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (14 loc) · 473 Bytes
Breadcrumbs
python-rapidjson
/
tests
/
test_enum.py
Copy path
File metadata and controls
19 lines (14 loc) · 473 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-
# :Project: python-rapidjson -- Test on stdlib enums
# :Created: mer 27 mar 2019 08:13:23 CET
# :Author: Lele Gaifax <lele@metapensiero.it>
# :License: MIT License
# :Copyright: © 2019, 2020 Lele Gaifax
#
import
enum
import
rapidjson
as
rj
def
test_intenums_as_ints
():
class
IE
(
enum
.
IntEnum
):
val
=
123
bigval
=
123123123123123123123123
assert
rj
.
dumps
([
IE
.
val
,
IE
.
bigval
])
==
"[123,123123123123123123123123]"
Back
|
FazBrowse Home
|
New Git URL