OSDN Git Service

modify.
[bashutil/bashutil.git] / test / test001.sh
1 #!/bin/sh
2 . ../main/bumsg.fnc
3 . ../main/buassert.fnc
4
5 #. ./test001.msg
6 MSG_M001='Hello [%s] world!'
7 MSG_M001_sysout=false
8 MSG_M001_syserr=true
9 MSG_M001_logger=true
10 MSG_M001_level=info
11 MSG_M001_embedid=true
12
13 MSG_M002='This is a %s.'
14
15 value1=`getmsg 'M001' 'Bash'`
16 assertEquals 'basic message printf.' '[M001]Hello [Bash] world!' "${value1}"
17
18 value1=`getmsg 'M002' 'pen'`
19 assertEquals 'simple message printf.' 'This is a pen.' "${value1}"
20