Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
9163106c
Commit
9163106c
authored
14 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Merge changes from 20b branch.
parent
e5a10235
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
i18n/tests/norm-test.lisp
+6
-5
6 additions, 5 deletions
i18n/tests/norm-test.lisp
i18n/tests/word-break-test.lisp
+3
-3
3 additions, 3 deletions
i18n/tests/word-break-test.lisp
with
9 additions
and
8 deletions
i18n/tests/norm-test.lisp
+
6
−
5
View file @
9163106c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
(
in-package
"CL-USER"
)
(
in-package
"CL-USER"
)
(
defvar
*normalization-test*
"target:i18n/tests/NormalizationTest.txt"
)
(
defvar
*normalization-test*
"target:i18n/tests/NormalizationTest.txt"
)
(
defun
parse-line
(
line
)
(
defun
parse-
norm-
line
(
line
)
(
declare
(
string
line
))
(
declare
(
string
line
))
(
cond
((
or
(
char=
(
aref
line
0
)
#\@
)
(
cond
((
or
(
char=
(
aref
line
0
)
#\@
)
(
char=
(
aref
line
0
)
#\#
))
(
char=
(
aref
line
0
)
#\#
))
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
(
failures
0
))
(
failures
0
))
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
parse-line
line
)
(
parse-
norm-
line
line
)
(
when
c1
(
when
c1
(
incf
total
)
(
incf
total
)
(
let
((
test1
(
lisp::string-to-nfd
c1
))
(
let
((
test1
(
lisp::string-to-nfd
c1
))
...
@@ -78,8 +78,9 @@
...
@@ -78,8 +78,9 @@
(
let
((
total
0
)
(
let
((
total
0
)
(
failures
0
))
(
failures
0
))
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
;;(format t "line = ~S~%" line)
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
parse-line
line
)
(
parse-
norm-
line
line
)
(
when
c1
(
when
c1
(
incf
total
)
(
incf
total
)
(
let
((
test1
(
lisp::string-to-nfkd
c1
))
(
let
((
test1
(
lisp::string-to-nfkd
c1
))
...
@@ -111,7 +112,7 @@
...
@@ -111,7 +112,7 @@
(
failures
0
))
(
failures
0
))
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
parse-line
line
)
(
parse-
norm-
line
line
)
(
when
c1
(
when
c1
(
incf
total
)
(
incf
total
)
(
let
((
test1
(
lisp::string-to-nfc
c1
))
(
let
((
test1
(
lisp::string-to-nfc
c1
))
...
@@ -144,7 +145,7 @@
...
@@ -144,7 +145,7 @@
(
failures
0
))
(
failures
0
))
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
(
loop
for
line
=
(
read-line
testfile
nil
nil
)
while
line
do
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
multiple-value-bind
(
c1
c2
c3
c4
c5
)
(
parse-line
line
)
(
parse-
norm-
line
line
)
(
when
c1
(
when
c1
(
incf
total
)
(
incf
total
)
(
let
((
test1
(
lisp::string-to-nfkc
c1
))
(
let
((
test1
(
lisp::string-to-nfkc
c1
))
...
...
This diff is collapsed.
Click to expand it.
i18n/tests/word-break-test.lisp
+
3
−
3
View file @
9163106c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
(
defvar
*word-break-test*
"target:i18n/tests/WordBreakTest.txt"
)
(
defvar
*word-break-test*
"target:i18n/tests/WordBreakTest.txt"
)
(
defun
parse-line
(
line
)
(
defun
parse-
word-break-
line
(
line
)
(
let*
((
eos
(
or
(
position
#\#
line
)
(
let*
((
eos
(
or
(
position
#\#
line
)
(
length
line
))))
(
length
line
))))
;; See WordBreakTest.txt for the format of the file. Basically
;; See WordBreakTest.txt for the format of the file. Basically
...
@@ -63,13 +63,13 @@
...
@@ -63,13 +63,13 @@
(
let
((
count
0
)
(
let
((
count
0
)
(
failed
0
))
(
failed
0
))
(
format
t
"Run WordBreakTest~%"
)
(
format
t
"Run WordBreakTest~%"
)
(
with-open-file
(
s
file
:direction
:input
:external-format
:utf
8
)
(
with-open-file
(
s
file
:direction
:input
:external-format
:utf
)
(
loop
for
line
=
(
read-line
s
nil
nil
)
(
loop
for
line
=
(
read-line
s
nil
nil
)
while
line
while
line
do
do
(
progn
(
progn
(
multiple-value-bind
(
s
b
)
(
multiple-value-bind
(
s
b
)
(
parse-line
line
)
(
parse-
word-break-
line
line
)
(
when
s
(
when
s
(
incf
count
)
(
incf
count
)
(
incf
failed
(
if
(
do-test
s
b
)
0
1
)))))))
(
incf
failed
(
if
(
do-test
s
b
)
0
1
)))))))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment