mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate: add avstring test
This commit is contained in:
parent
4c66af6141
commit
9e6ea3cef9
@ -8,6 +8,10 @@ fate-aes: libavutil/aes-test$(EXESUF)
|
||||
fate-aes: CMD = run libavutil/aes-test
|
||||
fate-aes: REF = /dev/null
|
||||
|
||||
FATE_LIBAVUTIL += fate-avstring
|
||||
fate-avstring: libavutil/avstring-test$(EXESUF)
|
||||
fate-avstring: CMD = run libavutil/avstring-test
|
||||
|
||||
FATE_LIBAVUTIL += fate-base64
|
||||
fate-base64: libavutil/base64-test$(EXESUF)
|
||||
fate-base64: CMD = run libavutil/base64-test
|
||||
|
27
tests/ref/fate/avstring
Normal file
27
tests/ref/fate/avstring
Normal file
@ -0,0 +1,27 @@
|
||||
Testing av_get_token()
|
||||
|''| -> || + ||
|
||||
|| -> || + ||
|
||||
|:| -> || + |:|
|
||||
|\| -> |\| + ||
|
||||
|'| -> || + ||
|
||||
| '' :| -> || + |:|
|
||||
| '' '' :| -> | | + |:|
|
||||
|foo '' :| -> |foo | + |:|
|
||||
|'foo'| -> |foo| + ||
|
||||
|foo | -> |foo| + ||
|
||||
| ' foo ' | -> | foo | + ||
|
||||
|foo\| -> |foo\| + ||
|
||||
|foo': blah:blah| -> |foo: blah:blah| + ||
|
||||
|foo\: blah:blah| -> |foo: blah| + |:blah|
|
||||
|foo'| -> |foo| + ||
|
||||
|'foo : ' :blahblah| -> |foo : | + |:blahblah|
|
||||
|\ :blah| -> | | + |:blah|
|
||||
| foo| -> |foo| + ||
|
||||
| foo | -> |foo| + ||
|
||||
| foo \ | -> |foo | + ||
|
||||
|foo ':blah| -> |foo :blah| + ||
|
||||
| foo bar : blahblah| -> |foo bar| + |: blahblah|
|
||||
|\f\o\o| -> |foo| + ||
|
||||
|'foo : \ \ ' : blahblah| -> |foo : \ \ | + |: blahblah|
|
||||
|'\fo\o:': blahblah| -> |\fo\o:| + |: blahblah|
|
||||
|\'fo\o\:': foo ' :blahblah| -> |'foo:: foo | + |:blahblah|
|
Loading…
Reference in New Issue
Block a user