aboutsummaryrefslogtreecommitdiff
path: root/shunit2-2.0.3/src/test/testFailures
diff options
context:
space:
mode:
authorPeter Carbonetto2017-07-18 13:56:10 -0500
committerPeter Carbonetto2017-07-18 13:56:10 -0500
commit42dc643e44563f64d3b7593c051898b7879d9878 (patch)
tree33fcd6aa1066016aea9b54e97a84f4250562c007 /shunit2-2.0.3/src/test/testFailures
parent8de8f701755b3dc4c042591541aa86bfda02f36b (diff)
downloadpangemma-42dc643e44563f64d3b7593c051898b7879d9878.tar.gz
Moved shunit2 files to test directory.
Diffstat (limited to 'shunit2-2.0.3/src/test/testFailures')
-rwxr-xr-xshunit2-2.0.3/src/test/testFailures89
1 files changed, 0 insertions, 89 deletions
diff --git a/shunit2-2.0.3/src/test/testFailures b/shunit2-2.0.3/src/test/testFailures
deleted file mode 100755
index 9410510..0000000
--- a/shunit2-2.0.3/src/test/testFailures
+++ /dev/null
@@ -1,89 +0,0 @@
-#! /bin/sh
-# $Id$
-# vim: expandtab
-# author: Kate Ward <kate.ward@forestent.com>
-#
-# Self-testing unit tests for shUnit2 failures
-#
-
-MSG='This is a test message'
-
-#-----------------------------------------------------------------------------
-# suite tests
-#
-
-commonNotEqualsSame()
-{
- fn=$1
-
- msg='same, with message'
- rslt=`${fn} "${MSG}" 'x' 'x' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='same'
- rslt=`${fn} 'x' 'x' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='not same'
- rslt=`${fn} 'x' 'y' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='null values'
- rslt=`${fn} '' '' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='too few arguments'
- rslt=`${fn} 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-}
-
-testFail()
-{
- msg='with message'
- rslt=`fail "${MSG}" 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='without message'
- rslt=`fail 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-}
-
-testFailNotEquals()
-{
- commonNotEqualsSame 'failNotEquals'
-}
-
-testFailSame()
-{
- msg='same, with message'
- rslt=`failSame "${MSG}" 'x' 'x' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='same'
- rslt=`failSame 'x' 'x' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='not same'
- rslt=`failSame 'x' 'y' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='null values'
- rslt=`failSame '' '' 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-
- msg='too few arguments'
- rslt=`failSame 2>&1`
- assertNotSame "${msg}" '' "${rslt}"
-}
-
-testFailNotSame()
-{
- commonNotEqualsSame 'failNotSame'
-}
-
-#-----------------------------------------------------------------------------
-# suite functions
-#
-
-# load and run shUnit2
-. ./shunit2