Comments (1)
The problem in this case was the shunit_match_=`expr "${shunit_condition_}" :
'\([0-9]*\)'` which returned a 1. i attached an || true to ensure that return
value is always 0 (since it won't be evaluated by the script).
I also fixed the problem for the AssertEquals and AssertNotEquals functions.
there the problem came frmo failNotEquals.
One remaining problem is that an `assertTrue 1` will still cause the crash
since the assertion function returns failure in this case. I'm not sure if this
is a responsibility of the assetion function or the caller that should check
the return value. I tend to give the responsibility to the caller.
I did not write test yet because I'm not sure how this behaviour could be
tested.
Original comment by [email protected]
on 13 Sep 2013 at 11:49
Attachments:
from shunit2.
Related Issues (20)
- Easy execution of single test instead of entire test suite HOT 7
- should not exit from sourced script HOT 1
- breaks if /tmp is mounted noexec HOT 3
- no branches in svn/branches/source HOT 2
- assertSame() parameter checking error message is wrong HOT 1
- Korn shell errors in latest revision HOT 1
- Patch for /trunk/source/2.1/src/shunit2
- error checking weak in assertTrue HOT 1
- a plugin-based reporting mechanism for shunit2 HOT 3
- asserEquals failes in bash when "nullglob" is set HOT 1
- 3 Unittests for shunit2 fail on IBM AIX 6.1 HOT 1
- "stopSkipping" should be "endSkipping" HOT 1
- Add colored output HOT 4
- Do not pipe "oneTimeTearDown" HOT 2
- _shunit_extractTestFunctions does not detect ksh style functions
- Display SKIPPED tests during execution
- Problems with shunit2 binary (installed via homebrew)
- Line Number Access Throws Error
- shUnit2 can't find sourced tests?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shunit2.