Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(867)

Unified Diff: net/tools/dafsa/make_dafsa_unittest.py

Issue 1756733003: Support all possible bitflags when computing the PSL DAFSA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/dafsa/make_dafsa.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dafsa/make_dafsa_unittest.py
diff --git a/net/tools/dafsa/make_dafsa_unittest.py b/net/tools/dafsa/make_dafsa_unittest.py
index 5ff92e622926109a7ab18f03055d6f3be52d239e..65a82445122303b27df1819244366d0849643a2d 100755
--- a/net/tools/dafsa/make_dafsa_unittest.py
+++ b/net/tools/dafsa/make_dafsa_unittest.py
@@ -29,13 +29,7 @@ class ParseGperfTest(unittest.TestCase):
infile2 = [ '%%', 'a, x', '%%' ]
self.assertRaises(make_dafsa.InputError, make_dafsa.parse_gperf, infile2)
- infile3 = [ '%%', 'a, 3', '%%' ]
- self.assertRaises(make_dafsa.InputError, make_dafsa.parse_gperf, infile3)
-
- infile4 = [ '%%', 'a, 6', '%%' ]
- self.assertRaises(make_dafsa.InputError, make_dafsa.parse_gperf, infile4)
-
- infile5 = [ '%%', 'a, 12', '%%' ]
+ infile5 = [ '%%', 'a, 12', '%%' ]
self.assertRaises(make_dafsa.InputError, make_dafsa.parse_gperf, infile5)
def testValues(self):
@@ -52,10 +46,18 @@ class ParseGperfTest(unittest.TestCase):
words3 = [ 'a2' ]
self.assertEqual(make_dafsa.parse_gperf(infile3), words3)
- infile4 = [ '%%', 'a, 4', '%%' ]
- words4 = [ 'a4' ]
+ infile4 = [ '%%', 'a, 3', '%%' ]
+ words4 = [ 'a3' ]
self.assertEqual(make_dafsa.parse_gperf(infile4), words4)
+ infile5 = [ '%%', 'a, 4', '%%' ]
+ words5 = [ 'a4' ]
+ self.assertEqual(make_dafsa.parse_gperf(infile5), words5)
+
+ infile6 = [ '%%', 'a, 6', '%%' ]
+ words6 = [ 'a6' ]
+ self.assertEqual(make_dafsa.parse_gperf(infile6), words6)
+
def testOneWord(self):
"""Tests a single key can be parsed."""
infile = [ '%%', 'apa, 1', '%%' ]
« no previous file with comments | « net/tools/dafsa/make_dafsa.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698