38 lines
500 B
Plaintext
38 lines
500 B
Plaintext
include::../description.adoc[]
|
|
|
|
== Noncompliant Code Example
|
|
|
|
[source,ruby]
|
|
----
|
|
if !(a == 2) # Noncompliant
|
|
# ...
|
|
end
|
|
|
|
b = !(a < 10) # Noncompliant
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
[source,ruby]
|
|
----
|
|
if a != 2
|
|
# ...
|
|
end
|
|
b = (a >= 10)
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|