# Is there likely to be any problem with an embedded assert statement like this?

**URL:** <https://www.ruby-forum.com/t/is-there-likely-to-be-any-problem-with-an-embedded-assert-statement-like-this/187995>\
**Category:** Ruby\
**Created:** [May 3, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/is-there-likely-to-be-any-problem-with-an-embedded-assert-statement-like-this/187995 "2010-05-03T22:09:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [May 3, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/is-there-likely-to-be-any-problem-with-an-embedded-assert-statement-like-this/187995/1 "2010-05-03T22:09:53Z")

</div>

class BaseMenuUnitTests \< Test::Unit::TestCase

```
 def test_validateNavId
     assert_nothing_raised(Exception) {
         navid = validateNavId(NavTrac,"test_validNavId")
         assert(navid == NavTrac, "validateNavId Return value 

```

‘#{navid}’  
differs from object validated (#{NavTrac}).")  
}  
end

end

It is the easiest way I can see to put this together, as long as it  
doesn’t  
conflict with some standard or requirement of usage…???

xc

---

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [May 4, 2010, 12:40am UTC](https://www.ruby-forum.com/t/is-there-likely-to-be-any-problem-with-an-embedded-assert-statement-like-this/187995/2 "2010-05-04T00:40:19Z")

</div>

On May 3, 4:07 pm, Xeno C. / Eskimo North and Gmail  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> end
> 
> It is the easiest way I can see to put this together, as long as it doesn’t  
> conflict with some standard or requirement of usage…???

Where’s the problem?
