fate: add AVDictionary tests

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
Lukasz Marek 2015-04-01 03:25:24 +02:00
parent 96f896750d
commit 0bf980919e
2 changed files with 47 additions and 0 deletions

View File

@ -53,6 +53,10 @@ fate-des: libavutil/des-test$(EXESUF)
fate-des: CMD = run libavutil/des-test
fate-des: REF = /dev/null
FATE_LIBAVUTIL += fate-dict
fate-dict: libavutil/dict-test$(EXESUF)
fate-dict: CMD = run libavutil/dict-test
FATE_LIBAVUTIL += fate-eval
fate-eval: libavutil/eval-test$(EXESUF)
fate-eval: CMD = run libavutil/eval-test

43
tests/ref/fate/dict Normal file
View File

@ -0,0 +1,43 @@
Testing av_dict_get_string() and av_dict_parse_string()
aaa aaa b,b bbb c=c ccc ddd d,d eee e=e f,f f=f g=g g,g
aaa=aaa,b\,b=bbb,c\=c=ccc,ddd=d\,d,eee=e\=e,f\,f=f\=f,g\=g=g\,g
aaa aaa b,b bbb c=c ccc ddd d,d eee e=e f,f f=f g=g g,g
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa=aaa"bbb=bbb"ccc=ccc"\\,\=\'\"=\\,\=\'\"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa=aaa'bbb=bbb'ccc=ccc'\\,\=\'"=\\,\=\'"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa"aaa,bbb"bbb,ccc"ccc,\\\,=\'\""\\\,=\'\"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa'aaa,bbb'bbb,ccc'ccc,\\\,=\'"'\\\,=\'"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa"aaa'bbb"bbb'ccc"ccc'\\,=\'\""\\,=\'\"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa aaa bbb bbb ccc ccc \,='" \,='"
aaa'aaa"bbb'bbb"ccc'ccc"\\,=\'\"'\\,=\'\"
aaa aaa bbb bbb ccc ccc \,='" \,='"
Testing av_dict_set()
a a
b b
c c
d d
e e
ff ff
Testing av_dict_set_int()
1 1
2 2
3 3
4 4
5 5
12 12
Testing av_dict_set() with existing AVDictionaryEntry.key as key
new val OK
new val OK