• R/O
  • HTTP
  • SSH
  • HTTPS

bashutil: Commit

BashUtil のためのリポジトリです。


Commit MetaInfo

Revision8597acfbe5d0bef74fd4710e68d5ec3d9ddbebb9 (tree)
Time2014-02-04 00:13:42
Authoriga <tosiki.iga@nift...>
Commiteriga

Log Message

testing.

Change Summary

Incremental Difference

--- a/main/buassert.fnc
+++ b/main/buassert.fnc
@@ -54,7 +54,7 @@ assertEquals() {
5454 local actualValue="$3"
5555
5656 if [ ! "${expectValue}" = "${actualValue}" ]; then
57- echo '[NG]Assertion failure: '"${message}"' Both value should be equal. expect:['"${expectValue}"'] actual:['"${actualValue}"']' 1>&2
57+ echo '[NG] Assertion failure: '"${message}"': Both value should be equal. expect:['"${expectValue}"'] actual:['"${actualValue}"']' 1>&2
5858 else
5959 echo '[OK] '"${message}" 1>&2
6060 fi
--- a/test/.gitignore
+++ b/test/.gitignore
@@ -1,2 +1,3 @@
11 /test001.sh~
22 /simple001.sh~
3+/bumsgTest.sh~
--- a/test/bumsgTest.sh
+++ b/test/bumsgTest.sh
@@ -19,6 +19,8 @@ MSG_M001_syserr=true
1919 MSG_M001_logger=true
2020 MSG_M001_level=info
2121 MSG_M001_embedid=true
22+
23+MSG_M002='[%s][%s][%s][%s][%s][%s][%s][%s][%s]'
2224 # Inplace message area: end
2325 ##############################################################################
2426
@@ -27,6 +29,9 @@ MSG_M001_embedid=true
2729 result=`getmsg 'M001' 'Bash'`
2830 assertEquals 'basic message printf.' '[M001]Hello [Bash] world!' "${result}"
2931
32+result=`getmsg 'M002' '1' '2' '3' '4' '5' '6' '7' '8' '9'`
33+assertEquals 'Test for 9 parameters' '[1][2][3][4][5][6][7][8][9]' "${result}"
34+
3035 ########################################
3136 # Test for getmsgIdEnvKey
3237 result=`getmsgIdEnvKey 'M001'`
Show on old repository browser