]> gitweb.factorcode.org Git - factor.git/commitdiff
factor: add newlines to .factor files
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 15 Aug 2022 00:35:31 +0000 (19:35 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 15 Aug 2022 00:47:24 +0000 (19:47 -0500)
pcregrep -LMr '\n\Z' . | grep '\.factor'

39 files changed:
basis/alien/enums/enums.factor
basis/base64/base64-tests.factor
basis/bootstrap/assembler/arm.factor
basis/cocoa/runtime/runtime.factor
basis/compression/zstd/ffi/ffi.factor
basis/compression/zstd/zstd-tests.factor
basis/db/sqlite/ffi/ffi.factor
basis/dns/dns-tests.factor
basis/editors/acme/acme-tests.factor
basis/escape-strings/escape-strings-tests.factor
basis/http/parsers/parsers-tests.factor
basis/math/primes/factors/factors-tests.factor
basis/math/primes/pollard-rho-brent/pollard-rho-brent-tests.factor
basis/mime/multipart/multipart-tests.factor
basis/models/search/search-tests.factor
basis/peg/ebnf/ebnf-tests.factor
basis/reservoir-sampling/reservoir-sampling-tests.factor
basis/reservoir-sampling/reservoir-sampling.factor
basis/resolv-conf/resolv-conf-tests.factor
basis/retries/retries-tests.factor
basis/windows/shcore/shcore.factor
core/ranges/ranges-tests.factor
extra/assocs/extras/extras-tests.factor
extra/broadcast-server/broadcast-server.factor
extra/calendar/holidays/us/us-tests.factor
extra/cap/cap-docs.factor
extra/cli/git/git.factor
extra/crypto/jwt/jwt-tests.factor
extra/elevate/elevate-tests.factor [deleted file]
extra/html5/html5.factor
extra/io/streams/counting/counting.factor
extra/math/blas/matrices/matrices-tests.factor
extra/random/xoshiro/xoshiro-tests.factor
extra/s3/s3.factor
extra/semantic-versioning/semantic-versioning-tests.factor
extra/semver/semver-tests.factor
extra/stack-as-data/stack-as-data-tests.factor
extra/units/si/si-tests.factor
extra/zealot/cli-changed-vocabs/cli-changed-vocabs.factor

index 9857771d6d65bf039512c3472f0c61bf888efed5..e9f9d44ec645648a0afa140db5090494874390b8 100644 (file)
@@ -63,4 +63,5 @@ PREDICATE: enum-c-type-word < c-type-word
     "c-type" word-prop members>> keys [ name>> ] map ;
 
 : values>enum ( values enum -- seq )
-    '[ _ number>enum ] map ; inline
\ No newline at end of file
+    '[ _ number>enum ] map ; inline
+
index 3593fe2c7d37fd6f71c22972abc738046dc54ae6..ef7e809c8836689bd89f170d594793e760683d0a 100644 (file)
@@ -52,4 +52,5 @@ kernel sequences splitting strings tools.test ;
 [ "{\"a\":\"bcd\"}" >urlsafe-base64-jwt >string ] unit-test
 
 { "{\"a\":\"bcd\"}" }
-[ "{\"a\":\"bcd\"}" >urlsafe-base64-jwt urlsafe-base64> >string ] unit-test
\ No newline at end of file
+[ "{\"a\":\"bcd\"}" >urlsafe-base64-jwt urlsafe-base64> >string ] unit-test
+
index c0fe5b9c1e9d8fe5ff3f90f697f4016695f2100d..fe9b1233c7dfc624448a5db494f370517ee11779 100644 (file)
@@ -7,4 +7,5 @@ IN: bootstrap.assembler.arm
 
 big-endian off
 
-! [ "bootstrap.assembler.arm" forget-vocab ] with-compilation-unit
\ No newline at end of file
+! [ "bootstrap.assembler.arm" forget-vocab ] with-compilation-unit
+
index 58238c0b4f5248e76a5505c1f624d1d5a578d288..72bd3021354360e423dc37ce1e53f8117b27764f 100644 (file)
@@ -86,4 +86,5 @@ FUNCTION: void* method_getImplementation ( Method method )
 
 FUNCTION: Class object_getClass ( id object )
 
-FUNCTION: void* object_getIvar ( Class class, Ivar ivar )
\ No newline at end of file
+FUNCTION: void* object_getIvar ( Class class, Ivar ivar )
+
index 8bbe820ac6ee025ba6e352018c122d8950bc02b1..b272bb5e444313f58e24229de45a36c321b3d5be 100644 (file)
@@ -25,4 +25,5 @@ FUNCTION: uint ZSTD_isError ( size_t code )
 
 FUNCTION: c-string ZSTD_getErrorName ( size_t code )
 
-! There are many more api calls but this is enough for basic payloads
\ No newline at end of file
+! There are many more api calls but this is enough for basic payloads
+
index 73fdbb26994025b90416f5ae5be29c2076bf481d..cd7f56b83f81debaadbb062d7b6d90c5e02b9d96 100644 (file)
@@ -14,4 +14,5 @@ IN: compression.zstd.tests
 ! bad compressed buffer, should fail
 [
     B{ 1 2 3 4 } zstd-uncompress-size
-] [ zstd-error? ] must-fail-with
\ No newline at end of file
+] [ zstd-error? ] must-fail-with
+
index 2371b790ac5f6ab765a49982e1177903ca2e516d..09c7f615b537cbe47bc372869c00d4667b530894 100644 (file)
@@ -459,4 +459,5 @@ FUNCTION: int sqlite3_get_autocommit ( sqlite3* pDb )
 FUNCTION: sqlite3* sqlite3_db_handle ( sqlite3_stmt* pStmt )
 
 FUNCTION: c-string sqlite3_db_filename ( sqlite3* db, c-string zDbName )
-FUNCTION: int sqlite3_db_readonly ( sqlite3* db, c-string zDbName )
\ No newline at end of file
+FUNCTION: int sqlite3_db_readonly ( sqlite3* db, c-string zDbName )
+
index 295943d58f2b4390b4ab70187490a2e40a0245d3..37c4e809132a24c736aa8b06fab7ece2abc0175b 100644 (file)
@@ -9,4 +9,5 @@ IN: dns.tests
 { B{ 1 49 1 49 1 49 1 49 0 } } [ "1.1.1.1." >name ] unit-test
 
 ! "1.1.1.1" reverse-ipv4-lookup
-! "one.one.one.one" A IN dns-query
\ No newline at end of file
+! "one.one.one.one" A IN dns-query
+
index 2b9eed5e4a84215080b52f9ba916da37a377e28d..1c8e7c809e4e7545b9282e8be686537ce5130ff6 100644 (file)
@@ -9,4 +9,5 @@ IN: editors.acme.tests
  "/plan9env" "PLAN9" [ plan9-path ] with-os-env ] with-variable ] unit-test
 
 { "/usr/local/plan9" } [ f \ plan9-path [
- f "PLAN9" [ plan9-path ] with-os-env ] with-variable ] unit-test
\ No newline at end of file
+ f "PLAN9" [ plan9-path ] with-os-env ] with-variable ] unit-test
+
index acfa60006687bce78d8c841a6a24c36ca998af6c..258dc0469090c7ef3b531481ab02aafb667f4ef1 100644 (file)
@@ -31,4 +31,5 @@ IN: escape-strings.tests
 { "[0[]1]]0]" } [ "]1]" number-escape-string ] unit-test
 { "[2[]0]1]]2]" } [ "]0]1]" number-escape-string ] unit-test
 { "[00[]0]1]2]3]4]5]6]7]8]9]]00]" } [ "]0]1]2]3]4]5]6]7]8]9]" number-escape-string ] unit-test
-{ "[01[]0]1]2]3]4]5]6]7]8]9]00]]01]" } [ "]0]1]2]3]4]5]6]7]8]9]00]" number-escape-string ] unit-test
\ No newline at end of file
+{ "[01[]0]1]2]3]4]5]6]7]8]9]00]]01]" } [ "]0]1]2]3]4]5]6]7]8]9]00]" number-escape-string ] unit-test
+
index 3f4312a72d6b6758bf6b01756fe1ec93397198ef..b89d370ab15ebe23041ab1168ef6fb5cee603279 100644 (file)
@@ -62,4 +62,5 @@ unit-test
     { T{ cookie { name "!#$%&'*+-.^_`|~:abc" } { value "def" } } }
 } [
     "!#$%&'*+-.^_`|~:abc=def;" parse-cookie
-] unit-test
\ No newline at end of file
+] unit-test
+
index 7a29c7c8df203bcd6392671e037a91ba9c116893..5b88820f1b09cb2c452065f6b99745af785f2071 100644 (file)
@@ -45,4 +45,5 @@ USING: math math.primes.factors sequences tools.test ;
 !     89 2^ 1 -
 !     107 2^ 1 -
 !     127 2^ 1 - * * factors
-! ] unit-test
\ No newline at end of file
+! ] unit-test
+
index 04b18e8b04add587e59267a342a465a4f6382d04..89b9888b65a4a06d1f1aa62f3eeb088b8948dc9d 100644 (file)
@@ -13,4 +13,5 @@ IN: math.primes.pollard-rho-brent.tests
 !     { 93461639715357977769163558199606896584051237541638188580280321 1238926361552897 }
 ! } [
 !     93461639715357977769163558199606896584051237541638188580280321 1238926361552897 * pollard-rho-brent-factors
-! ] unit-test
\ No newline at end of file
+! ] unit-test
+
index 78a77f95f34641cae4b6571f8cdb821bd33dde5c..d2644f2974482b55daf752988a83848fec559225 100644 (file)
@@ -83,4 +83,5 @@ SYMBOL: mime-test-server
         "\r\n\r\n" <multipart>
         "\r\n\r\n" parse-multipart
     ] with-input-stream
-] [ mime-decoding-ran-out-of-bytes? ] must-fail-with
\ No newline at end of file
+] [ mime-decoding-ran-out-of-bytes? ] must-fail-with
+
index beaf0ae16cd93fb5348d6addd93fe2125af2d441..15d59c11bb9bc5917d107a47498d94f07b4e139a 100644 (file)
@@ -7,4 +7,5 @@ IN: models.search.tests
 { } [
     world-buttons <model> "Active Buttons"
         <active-buttons-popup> gadget.
-] unit-test
\ No newline at end of file
+] unit-test
+
index a6952ade8ca7c4aa520dd0e41d872862803cfb6d..3551951330b575acdbfa635f569c35e63ab448e2 100644 (file)
@@ -645,4 +645,5 @@ Tok                = Spaces (Number | Special )
 
 { { "a" "c" } } [
     "abc" EBNF[=[ rule="a":a "b"+~ "c":c => [[ a c 2array ]] ]=]
-] unit-test
\ No newline at end of file
+] unit-test
+
index 5c6c97dbf767c5e79d7da8d2554eaa0310385d87..8500166ab465cd29ffe3d31512682bb233844972 100644 (file)
@@ -23,4 +23,5 @@ IN: reservoir-sampling.tests
         1006 over reservoir-sample
         1007 over reservoir-sample
     ] with-random
-] unit-test
\ No newline at end of file
+] unit-test
+
index a646fdabe42e27bf84c9c1558b97ceb1c59f188a..768268803d5a4ba7bfc6f55c2d8ebcec8cb457d0 100644 (file)
@@ -30,4 +30,5 @@ TUPLE: reservoir-sampler iteration k sampled ;
         ] [
             3drop
         ] if
-    ] if ;
\ No newline at end of file
+    ] if ;
+
index 59c52cffe2af495866b8df04b9128f2111794128..ead6c1af2bb1a5540f1ca5e06512e9454a2c63c1 100644 (file)
@@ -15,4 +15,5 @@ IN: resolv-conf.tests
     "nameserver 127.0.0.53
     options edns0
     search localdomain" string>resolv.conf
-] unit-test
\ No newline at end of file
+] unit-test
+
index 1c80a9c664bbe63473ab224b9b28794920752465..0e96a1f0f143bdaad283c3f50495e57aa35a3615 100644 (file)
@@ -68,4 +68,5 @@ IN: retries.tests
 { } [
     [ 2 = [ "not 2!" throw ] unless ]
      1.1 100 <exponential-wait> 3 retries
-] unit-test
\ No newline at end of file
+] unit-test
+
index f36064d01acafd0e42cb2999101ea9636387d340..1964fa0c5c88170ba5ff8a101f4c56377728691b 100644 (file)
@@ -72,4 +72,5 @@ FUNCTION: HRESULT SetProcessDpiAwareness ( PROCESS_DPI_AWARENESS value )
 ENUM: SHELL_UI_COMPONENT
     { SHELL_UI_COMPONENT_TASKBARS 0 }
     { SHELL_UI_COMPONENT_NOTIFICATIONAREA 1 }
-    { SHELL_UI_COMPONENT_DESKBAND 2 } ;
\ No newline at end of file
+    { SHELL_UI_COMPONENT_DESKBAND 2 } ;
+
index 4506d3b15e50c8b8ba7707fc80b92c0697c78a0f..549b0cfeb97c62aba1dddf95740275062e046e26 100644 (file)
@@ -57,4 +57,4 @@ USING: arrays kernel math ranges sequences sets tools.test ;
 { t } [ 10 -10 -2 <range> [ sum ] [ >array sum ] bi = ] unit-test
 
 ! Empty range
-{ 0 } [ 1 0 1 <range> sum ] unit-test
\ No newline at end of file
+{ 0 } [ 1 0 1 <range> sum ] unit-test
index 65aaf7798c4d5a0082ee40ce568dba8997946db9..f382df494f3f1b3a25d64f78e1f8aa529b49e8e5 100644 (file)
@@ -294,4 +294,5 @@ USING: arrays assocs.extras kernel math math.order sequences tools.test ;
 } [
     { { 10 100 } { 20 200 } { 30 300 } { 41 401 } }
     [ [ dup 1 + 2array ] dip ] collect-assoc-by-multi
-] unit-test
\ No newline at end of file
+] unit-test
+
index 265144e3d82153bfac2885f426e95f68c6f36f66..37ace19cdcd451972a24067e87564b0433fc7910 100644 (file)
@@ -117,4 +117,5 @@ SINGLETONS: command data ;
     ] with-destructors ;
 
 ! "192.168.88.255" 7777 start-broadcast-server
-! "USE: math 2 2 + ." over send-broadcast-command
\ No newline at end of file
+! "USE: math 2 2 + ." over send-broadcast-command
+
index 6c0e64127a3bb8daaaeaa8bd4ed7ea14bf2cdebd..af8002f14ad15f4ea4c4613e06bc788178ffb8cd 100644 (file)
@@ -21,4 +21,5 @@ sequences tools.test ;
     }
 } [
     2022 <year-gmt> timestamp>year-dates-gmt [ us-federal holiday? ] filter
-] unit-test
\ No newline at end of file
+] unit-test
+
index 909ee8562d6ab9ad5b7e909d49cc0b36b4faab70..595c4301c8ac266d52a460e26980924e5cad5cc8 100644 (file)
@@ -12,4 +12,5 @@ HELP: screenshot
   { $description
     "Creates a bitmap image of a UI window."
   }
-  { $notes "If the current " { $link gl-scale-factor } " is " { $snippet "2.0" } ", then the " { $snippet "2x" } " slot in the resulting " { $link image } " will be " { $link t } "." } ;
\ No newline at end of file
+  { $notes "If the current " { $link gl-scale-factor } " is " { $snippet "2.0" } ", then the " { $snippet "2x" } " slot in the resulting " { $link image } " will be " { $link t } "." } ;
+
index 67b63b7e308a5c9093849f375f6295029d3f56ad..39b42f7fd868601598dce63b936e451bdf9d0e53 100644 (file)
@@ -63,4 +63,5 @@ cli-git-num-parallel [ cpus 2 * ] initialize
 
 : directory-entries-without-git ( directory -- entries )
     recursive-directory-entries
-    [ name>> "/.git/" subseq-index? ] reject ;
\ No newline at end of file
+    [ name>> "/.git/" subseq-index? ] reject ;
+
index dd8fd5a0aa4cc608b750bc0a7c4685ecfbd1b4d3..7fd4dcef7287771e825cf3f4c45eeb5538a67f22 100644 (file)
@@ -21,4 +21,5 @@ IN: crypto.jwt.tests
         { "iat" 1516239022 }
     }
     "" sha-256 sign-jwt
-] unit-test
\ No newline at end of file
+] unit-test
+
diff --git a/extra/elevate/elevate-tests.factor b/extra/elevate/elevate-tests.factor
deleted file mode 100644 (file)
index e69de29..0000000
index 435f4c544ad81fd43e46d53533be6e05e8482354..e82f6d2928e15a0c309d034f79ef5bacbf9250fa 100644 (file)
@@ -2084,4 +2084,5 @@ ERROR: invalid-return-state obj ;
 
 
 : parse-html5 ( string -- document )
-    [ <document> 0 ] dip data-state 2drop ;
\ No newline at end of file
+    [ <document> 0 ] dip data-state 2drop ;
+
index 592c761bb44412af58dd10197c98e09c57b1f6b8..a80ab5055f28926af4175e4fb01d896277f36204 100644 (file)
@@ -50,4 +50,5 @@ M:: counting-stream stream-contents* ( stream -- seq )
     seq ;
 
 : with-counting-stream ( stream quot -- in-count out-count )
-    [ <counting-stream> ] dip [ with-input-stream ] keepd [ in-count>> ] [ out-count>> ] bi ; inline
\ No newline at end of file
+    [ <counting-stream> ] dip [ with-input-stream ] keepd [ in-count>> ] [ out-count>> ] bi ; inline
+
index e97a9a6252de07de5bccc5fac9762fe174e79cbe..0383af9063c6105ae549136e530c1b044aac81f9 100644 (file)
@@ -714,4 +714,5 @@ sequences tools.test ;
         svector{ 2.0 2.0 3.0 4.0 }
         svector{ 3.0 2.0 3.0 4.0 }
     } equal?
-] unit-test
\ No newline at end of file
+] unit-test
+
index ef6a25667aecd4bc85e6a90403d6f81abf13f580..6a64197a5ebb970e4153d47b6cb4c6605609d7ed 100644 (file)
@@ -35,4 +35,5 @@ IN: random.xoshiro.tests
   17232205271518152816
   9857397594961175947
   8327361040835137714
-} [ 0 1 2 3 long-jump-256 ] unit-test
\ No newline at end of file
+} [ 0 1 2 3 long-jump-256 ] unit-test
+
index 943ae30debafdc8da447e5c3bf18298b4dfa4c17..8dac6ba26d474307f34623474ccad79a3b75cac5 100644 (file)
@@ -137,4 +137,5 @@ PRIVATE>
 
 : bucket>alist ( bucket -- alist )
     dup keys
-    [ name>> get-object nip ] with zip-with ;
\ No newline at end of file
+    [ name>> get-object nip ] with zip-with ;
+
index 4c44af47e85ceb193723be3bcdc6b8d25ee1f3a6..8c9a299d624b2cb0e13a3544577eadf74c80f073 100644 (file)
@@ -96,4 +96,5 @@ CONSTANT: semver-gt-comparisons {
     semver-gt-comparisons
     [ first2 swap version<=> ] zip-with
     values [ +lt+ = ] all?
-] unit-test
\ No newline at end of file
+] unit-test
+
index 3c6d6a8a3a3f27fb5e4a7afe80899efc37fe7478..ce459ccb157695f2bc4c1bf8079a46cc561811e6 100644 (file)
@@ -139,4 +139,5 @@ CONSTANT: semver-gt-comparisons {
     semver-gt-comparisons
     [ first2 swap [ parse-semver ] bi@ <=> ] zip-with
     values [ +lt+ = ] all?
-] unit-test
\ No newline at end of file
+] unit-test
+
index d11af28aef1f30b08d93f7cbb80ae60c29c13d45..a8418121b9d0cdd2ad5c079e494e7fd1228a10a2 100644 (file)
@@ -18,4 +18,5 @@ IN: stack-as-data.tests
 [
     5 6 7 8
     4 [ sq ] stack-map
-] unit-test
\ No newline at end of file
+] unit-test
+
index e2d1aa291d9227527c9697821031255d8675f339..6920dbb100110ecef2905be3b67538bd1e6755e9 100644 (file)
@@ -12,4 +12,5 @@ math.functions units.imperial ;
 { -40 } [ -40 deg-C [ deg-F ] undo ] unit-test
 
 { 1024 } [ 1 kibi ] unit-test
-{ 1024 } [ 1 Ki ] unit-test
\ No newline at end of file
+{ 1024 } [ 1 Ki ] unit-test
+
index c14bbedc78ebb7e0dd889b5cc56f61c08296a62a..65e8992fd90c43366c9312c93edb1338ff90d435 100644 (file)
@@ -5,4 +5,5 @@ IN: zealot.cli-changed-vocabs
 
 : zealot-changed-vocabs ( -- ) ci-vocabs-to-test [ print ] each ;
 
-MAIN: zealot-changed-vocabs
\ No newline at end of file
+MAIN: zealot-changed-vocabs
+