#3.5 Square-wave tests

#3.5.1 Theory