Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flatlatex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leger
flatlatex
Commits
b2a4b1a8
Commit
b2a4b1a8
authored
Jan 02, 2017
by
Jean-Benoist Leger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for duplicated cmd
parent
e8520c6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
flatlatex/tests/test_data_consistancy.py
flatlatex/tests/test_data_consistancy.py
+12
-0
No files found.
flatlatex/tests/test_data_consistancy.py
View file @
b2a4b1a8
...
...
@@ -60,6 +60,18 @@ def test_newcommands_consistancy():
a
=
int
(
parsed
[
3
][
1
])
assert
a
>=
0
def
test_replicated_command
():
datasets
=
[
data
.
symbols
.
keys
(),
data
.
combinings
.
keys
(),
data
.
transliterators
.
keys
(),
]
datasets
.
append
([
parser
.
parse
(
nc
)[
1
][
1
]
for
nc
in
data
.
newcommands
])
for
i
in
range
(
len
(
datasets
)):
for
j
in
range
(
i
+
1
,
len
(
datasets
)):
s1
=
set
(
datasets
[
i
])
s2
=
set
(
datasets
[
j
])
assert
len
(
s1
.
intersection
(
s2
))
==
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment