Skip to content

Commit

Permalink
Split apart some integer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 5, 2014
1 parent 80c0efa commit a0a2433
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/tests/keywords/integer
Expand Up @@ -67,19 +67,31 @@ if ("%{integer:Tmp-String-2}" != '') {
update request {
Tmp-Integer-0 := "%{integer:Tmp-Octets-0}"
}
if ((Tmp-Octets-0 != "0x%{hex:Tmp-Integer-0}") || (Tmp-Integer-0 != 959985457)) {
if (Tmp-Octets-0 != "0x%{hex:Tmp-Integer-0}") {
update reply {
Filter-Id += 'fail 4'
Filter-Id += 'fail 4a'
}
}

if (Tmp-Integer-0 != 959985457) {
update reply {
Filter-Id += 'fail 4b'
}
}

# Octets - network order representation of a 8 byte octet string
update request {
Tmp-Integer64-0 := "%{integer:Tmp-Octets-1}"
}
if ((Tmp-Octets-1 != "0x%{hex:Tmp-Integer64-0}") || (Tmp-Integer64-0 != 4123106143410599729)) {
if (Tmp-Octets-1 != "0x%{hex:Tmp-Integer64-0}") {
update reply {
Filter-Id += 'fail 5a'
}
}

if (Tmp-Integer64-0 != 4123106143410599729) {
update reply {
Filter-Id += 'fail 5'
Filter-Id += 'fail 5b'
}
}

Expand Down

0 comments on commit a0a2433

Please sign in to comment.