react / wstein / node_modules / browserify / node_modules / glob / node_modules / minimatch / node_modules / brace-expansion / test / cases.txt
80556 views# skip quotes for now1# "{x,x}"2# {"x,x"}3# {x","x}4# '{a,b}{{a,b},a,b}'5A{b,{d,e},{f,g}}Z6PRE-{a,b}{{a,b},a,b}-POST7\\{a,b}{{a,b},a,b}8{{a,b}9{a,b}}10{,}11a{,}12{,}b13a{,}b14a{b}c15a{1..5}b16a{01..5}b17a{-01..5}b18a{-01..5..3}b19a{001..9}b20a{b,c{d,e},{f,g}h}x{y,z21a{b,c{d,e},{f,g}h}x{y,z\\}22a{b,c{d,e},{f,g}h}x{y,z}23a{b{c{d,e}f{x,y{{g}h24a{b{c{d,e}f{x,y{}g}h25a{b{c{d,e}f{x,y}}g}h26a{b{c{d,e}f}g}h27a{{x,y},z}b28f{x,y{g,z}}h29f{x,y{{g,z}}h30f{x,y{{g,z}}h}31f{x,y{{g}h32f{x,y{{g}}h33f{x,y{}g}h34z{a,b{,c}d35z{a,b},c}d36{-01..5}37{-05..100..5}38{-05..100}39{0..5..2}40{0001..05..2}41{0001..-5..2}42{0001..-5..-2}43{0001..5..-2}44{01..5}45{1..05}46{1..05..3}47{05..100}48{0a..0z}49{a,b\\}c,d}50{a,b{c,d}51{a,b}c,d}52{a..F}53{A..f}54{a..Z}55{A..z}56{z..A}57{Z..a}58{a..F..2}59{A..f..02}60{a..Z..5}61d{a..Z..5}b62{A..z..10}63{z..A..-2}64{Z..a..20}65{a{,b}66{a},b}67{x,y{,}g}68{x,y{}g}69{{a,b}70{{a,b},c}71{{a,b}c}72{{a,b},}73X{{a,b},}X74{{a,b},}c75{{a,b}.}76{{a,b}}77X{a..#}X78# this next one is an empty string7980{-10..00}81# Need to escape slashes in here for reasons i guess.82{a,\\\\{a,b}c}83{a,\\{a,b}c}84a,\\{b,c}85{-10.\\.00}86#### bash tests/braces.tests87# Note that some tests are edited out because some features of88# bash are intentionally not supported in this brace expander.89ff{c,b,a}90f{d,e,f}g91{l,n,m}xyz92{abc\\,def}93{abc}94{x\\,y,\\{abc\\},trie}95# not impementing back-ticks obviously96# XXXX\\{`echo a b c | tr ' ' ','`\\}97{}98# We only ever have to worry about parsing a single argument,99# not a command line, so spaces have a different meaning than bash.100# { }101}102{103abcd{efgh104# spaces105# foo {1,2} bar106# not impementing back-ticks obviously107# `zecho foo {1,2} bar`108# $(zecho foo {1,2} bar)109# ${var} is not a variable here, like it is in bash. omit.110# foo{bar,${var}.}111# foo{bar,${var}}112# isaacs: skip quotes for now113# "${var}"{x,y}114# $var{x,y}115# ${var}{x,y}116# new sequence brace operators117{1..10}118# this doesn't work yet119{0..10,braces}120# but this does121{{0..10},braces}122x{{0..10},braces}y123{3..3}124x{3..3}y125{10..1}126{10..1}y127x{10..1}y128{a..f}129{f..a}130{a..A}131{A..a}132{f..f}133# mixes are incorrectly-formed brace expansions134{1..f}135{f..1}136# spaces137# 0{1..9} {10..20}138# do negative numbers work?139{-1..-10}140{-20..0}141# weirdly-formed brace expansions -- fixed in post-bash-3.1142a-{b{d,e}}-c143a-{bdef-{g,i}-c144# isaacs: skip quotes for now145# {"klklkl"}{1,2,3}146# isaacs: this is a valid test, though147{klklkl}{1,2,3}148# {"x,x"}149{1..10..2}150{-1..-10..2}151{-1..-10..-2}152{10..1..-2}153{10..1..2}154{1..20..2}155{1..20..20}156{100..0..5}157{100..0..-5}158{a..z}159{a..z..2}160{z..a..-2}161# make sure brace expansion handles ints > 2**31 - 1 using intmax_t162{2147483645..2147483649}163# unwanted zero-padding -- fixed post-bash-4.0164{10..0..2}165{10..0..-2}166{-50..-0..5}167# bad168{1..10.f}169{1..ff}170{1..10..ff}171{1.20..2}172{1..20..f2}173{1..20..2f}174{1..2f..2}175{1..ff..2}176{1..ff}177{1..f}178{1..0f}179{1..10f}180{1..10.f}181{1..10.f}182183184