Questions tagged [assertion]

An assertion is a software construct where the developer states ("asserts") a condition that he believes will always be true. If the condition evaluates to false in some languages an exception is thrown, in others a message is printed, and in others the program ceases to operate.

An assertion is a software construct where the developer states ("asserts") a condition that he believes will always be true. If the condition evaluates to false, in some languages an exception is thrown, in others a message is printed, and in still others the program ceases to operate.

Assertions can exist in most high-level languages (C, Java, etc...) as well as in register-transfer-languages (RTL) such as Verilog, System Verilog, and VHDL.

1445 questions
-4
votes
1 answer

map/set no deferenceable after using map.erase

I am getting a map/set not dereferanceable debug assertion error in my code and I have no idea how to fix it, I have pinpointed the problem to the map.erase in my Shape::insert function however I have no idea how to stop the problem from happening…
Shubshub
  • 3
  • 2
-6
votes
2 answers

Regular expression to verify that string contains a separator comma ( , ) but not a point ( . )

I'm using SoapUI and I have responses of JSON which contains strings. For example about string "84,96". I need to create a regular expression which verifies that all value decimals of this JSON are containing a comma (,) but not a point…
Khalid Ksouri
  • 181
  • 14
1 2 3
96
97