Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f464f8a00e
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (29 sloc) 1.136 kB

Timing

Test Scripts

Timing Utilities

Timing Tests

Testing

Here are some tests that should be written:

  • an interact (maybe where the user waits a small random amount of time, then "moves the slider", another small random amount of time and "changes an input", etc.

  • upload a file, do some operation on the file, and then get the result (and the resulting file)

  • a longer computation than just summing two numbers. Maybe a for loop that calculates a factorial of a big number or something.

  • generate a file in code (maybe a matplotlib plot) and download the resulting image

  • Exercise the "Sage Mode" --- that should also be an option for all of the above

  • Sage-specific preparser tests.

  • tests exercising memory and cputime limits:

    import time
    a=[]
    for i in range(20):
        a.append([0]*50000000)
        time.sleep(1)
        print get_memory_usage()
    

    or for time limits:

    factor(2^4994-3^344)
    
Jump to Line
Something went wrong with that request. Please try again.