Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *** Settings ***
- #Library Selenium2Library
- #Library TestingBot
- Library TestLibrary.py
- #Test Setup Open test browser
- #Test Teardown Close test browser
- *** Variables ***
- ${CREDENTIALS} key:secret
- *** Test Cases ***
- NormalRange
- Test Hex2Float
- Boundaries
- Test To Boundaries
- Stress
- Test Stress
- *** Keywords ***
- Test Hex2Float
- ${output} = Test Normal Range 3ffd4f8b
- Should Be true ${output} == 1.97898995876312255859375
- ${output} = Test Normal Range 459c4000
- Should Be true ${output} == 5000
- ${output} = Test Normal Range 478884af
- Should Be true ${output} == 69897.3671875
- ${output} = Test Normal Range 80000000
- Should Be true ${output} == -0
- ${output} = Test Normal Range 00000000
- Should Be true ${output} == 0
- ${output} = Test Normal Range 007fffff #underflow
- Should Be true ${output} == 1.1754942E-38
- ${output} = Test Normal Range 3dcccccd #rounding errors
- Should Be true ${output} == 0.100000001490116119384765625
- ${output} = Test Division 43fc0000,3f800000
- Should Be true ${output} == 43fc0000
- ${output} = Test Division 43fc0000,00000000
- Should Be true ${output} == "Infinity"
- ${output} = Test Division 43fc0000,80000000
- Should Be true ${output} == "Infinity"
- Test To Boundaries
- ${output} = Test Boundaries ff800000
- Should Be true ${output} == "-Infinity"
- ${output} = Test Boundaries 7f800000
- Should Be true ${output} == "Infinity"
- ${output} = Test Boundaries ffffffff
- Should Be true ${output} == "NaN"
- Test Stress
- ${output} = Test Normal Range 3ffd4f8b3ffd4f8b
- Should Be true ${output} == "Value out of range"
- ${output} = Test Normal Range 459c4000459c4000
- Should Be true ${output} == "Value out of range"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement