modern: line endings

modern-harvey2
Doug Coleman 2017-10-27 20:25:43 -05:00
parent b9e2b14cf0
commit ce38445abc
11 changed files with 14 additions and 16 deletions

View File

@ -32,4 +32,4 @@ STDERR-UNIT-TEST: [ "hello" ewrite ] "hello"
EXPECTED-STACK: { 3 }
EXPECTED-STDOUT: "hello world"
UNIT-TEST-FAILED>
]]
]]

View File

@ -24,4 +24,3 @@ CUDA-FUNCTION: helloWorld ( char* string-ptr )
] with-each-cuda-device ;
MAIN: cuda-hello-world

View File

@ -30,7 +30,7 @@ IN: find.extras.tests
[
{ [ "[" head-from ] [ [ char: = = ] take-empty-from ] [ "[" head-from ] } find-quots
dup [ slices-combine ] when
]
]
} find-quots slices-combine
] unit-test
@ -39,7 +39,7 @@ IN: find.extras.tests
[
{ [ "[" head-from ] [ [ char: = = ] take-empty-from ] [ "[" head-from ] } find-quots
dup [ slices-combine ] when
]
]
} find-quots slices-combine
] unit-test
@ -48,7 +48,7 @@ IN: find.extras.tests
[
{ [ "[" head-from ] [ [ char: = = ] take-empty-from ] [ "[" head-from ] } find-quots
dup [ slices-combine ] when
]
]
} find-quots slices-combine
] unit-test
@ -57,7 +57,7 @@ IN: find.extras.tests
[
{ [ "[" head-from ] [ [ char: = = ] take-empty-from ] [ "[" head-from ] } find-quots
dup [ slices-combine ] when
]
]
} find-quots slices-combine
] unit-test
@ -67,7 +67,7 @@ IN: find.extras.tests
[
{ [ "[" head-from ] [ [ char: = = ] take-empty-from ] [ "[" head-from ] } find-quots
dup [ slices-combine ] when
]
]
} find-quots slices-combine
] unit-test

View File

@ -146,7 +146,7 @@ CONSTANT: all-separators $[ whitespace-separators modern-separators append ]
'[ _ head-from ] dip swap ;
: opening-lua-bracket-from ( seq n -- seq n' slices )
{ [ tag-from ] [ "[" head-from ] [ [ char: = = ] take-empty-from ] [ "[" head-from ] }
{ [ tag-from ] [ "[" head-from ] [ [ char: = = ] take-empty-from ] [ "[" head-from ] }
find-quots ;
: opening-lua-brace-from ( seq n -- seq n' slices )
@ -229,7 +229,7 @@ ERROR: unmatched-syntax seq n obj delimiter ;
peek-delimiter :> peeked
delim peeked sequence= [
! } }
delimiter-stack get pop*
delimiter-stack get pop*
delim f
] [
delim peeked matching-delimiter-string sequence= [

View File

@ -17,4 +17,4 @@ IN: math.similarity
: jaccard-similarity ( a b -- n )
[ intersect cardinality dup ]
[ [ cardinality ] bi@ + swap - ] 2bi
[ drop 0 ] [ /f ] if-zero ;
[ drop 0 ] [ /f ] if-zero ;

View File

@ -253,4 +253,4 @@ DEFER: literal>tuple
: literals>vocabulary ( literals -- vocabulary )
;
;

View File

@ -201,4 +201,4 @@ IN: modern.tests
}
}
}
} [ "foo:: <FOO FOO>[ 0 ][ 1 ][ 2 ][ 3 ] <BAR BAR>" string>literals >strings ] unit-test
} [ "foo:: <FOO FOO>[ 0 ][ 1 ][ 2 ][ 3 ] <BAR BAR>" string>literals >strings ] unit-test

View File

@ -626,4 +626,4 @@ PRIVATE>
: count-tail ( seq quot -- n )
[ not ] compose [ find-last drop ] 2keep drop
length swap [ - 1 - ] when* ; inline
length swap [ - 1 - ] when* ; inline

View File

@ -8,4 +8,3 @@ CONSTANT: nums2 <array 1 2 3 array>
UNIT-TEST: [ nums1 ] { { 1 2 3 } }
UNIT-TEST: [ nums2 ] { { 1 2 3 } }

View File

@ -167,4 +167,4 @@ M: windows factor-path "./factor.com" ;
[ "ZEALOT BOOTSTRAPPING" print flush drop bootstrap-factor ]
[ "ZEALOT LOADING ROOTS" print flush drop zealot-load-commands ]
[ "ZEALOT TESTING ROOTS" print flush drop zealot-test-commands ]
} 2cleave ;
} 2cleave ;

View File

@ -74,4 +74,4 @@ IN: zealot
[ git-clone-as ] keep ;
: zealot-build-checkout-branch ( path branch -- process )
'[ _ git-checkout-existing-branch* ] with-directory ;
'[ _ git-checkout-existing-branch* ] with-directory ;