34 lines
606 B
Plaintext
34 lines
606 B
Plaintext
include::../description.adoc[]
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
function computeDurationInMilliseconds() {
|
|
$duration = ((($hours * 60) + $minutes) * 60 + $seconds ) * 1000 ;
|
|
return $duration;
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
function computeDurationInMilliseconds() {
|
|
return ((($hours * 60) + $minutes) * 60 + $seconds ) * 1000;
|
|
}
|
|
----
|
|
|
|
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[]
|