OSDN Git Service

modify.
authoriga <tosiki.iga@nifty.ne.jp>
Thu, 30 Jan 2014 13:20:28 +0000 (22:20 +0900)
committeriga <tosiki.iga@nifty.ne.jp>
Thu, 30 Jan 2014 13:20:28 +0000 (22:20 +0900)
test/simple001.msg [moved from test/test001.msg with 100% similarity]
test/simple001.sh
test/test001.sh
test/test002.sh

similarity index 100%
rename from test/test001.msg
rename to test/simple001.msg
index 69adc46..6852e33 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 . ../main/bumsg.fnc
 . ../main/buassert.fnc
-. ./test001.msg
+. ./simple001.msg
 
 logmsg 'M001' 'Bash'
 logmsg 'M002' 'pen'
index ee17374..ef99c14 100644 (file)
@@ -1,8 +1,20 @@
 #!/bin/sh
 . ../main/bumsg.fnc
 . ../main/buassert.fnc
-. ./test001.msg
+
+#. ./test001.msg
+MSG_M001='Hello [%s] world!'
+MSG_M001_sysout=false
+MSG_M001_syserr=true
+MSG_M001_logger=true
+MSG_M001_level=info
+MSG_M001_embedid=true
+
+MSG_M002='This is a %s.'
 
 value1=`getmsg 'M001' 'Bash'`
-assertEquals 'Value should be equal.' '[M001]Hello [Bash] world!' "${value1}"
+assertEquals 'basic message printf.' '[M001]Hello [Bash] world!' "${value1}"
+
+value1=`getmsg 'M002' 'pen'`
+assertEquals 'simple message printf.' 'This is a pen.' "${value1}"
 
index 818059b..e6ca26b 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 . ../main/bumsg.fnc
-. ./test001.msg
+. ./simple001.msg
 
-strmsg="`getmsg M001 Bash`"
-echo "${strmsg}"
+logmsg M001 Bash
+logmsg M002 pen