Tests

A thorough test suite documenting various use-cases for the Semantic modules.

semantic.test.testConversion

class semantic.test.testConversion.TestConversion(methodName='runTest')

Bases: unittest.case.TestCase

compareConversion(input, target)
testComplex()
testExponentiation()
testExtraction()
testFloat()
testPer()
testReadability()
testSimple()

semantic.test.testDates

class semantic.test.testDates.TestDate(methodName='runTest')

Bases: unittest.case.TestCase

compareDate(input, target)
compareDates(input, targets)
compareTime(input, target)
compareTimes(input, targets)
testAmbiguousNext()
testExactNums()
testExactTime()
testExactWords()
testExactWordsDash()
testIllegalDate()
testInExactTime()
testMultiWordAndDaysFrom()
testMultiWordDaysFrom()
testMultiple()
testMultipleWeeksFrom()
testNextFriday()
testThis()
testToday()
testTomorrow()
testTwoDates()
testWeekFromExact()

semantic.test.testMath

class semantic.test.testMath.TestMath(methodName='runTest')

Bases: unittest.case.TestCase

compareSolution(input, target)
testAddition()
testComplex()
testConstants()
testDividedBy()
testImplicitConstantMultiplication()
testImplicitMultiplication()
testPower()
testUnary()

semantic.test.testNumbers

class semantic.test.testNumbers.TestNumbers(methodName='runTest')

Bases: unittest.case.TestCase

compareNumbers(input, target)
testBigInt()
testFloatCutoff()
testFloatFrac()
testFloatFracSpecial()
testFloatPoint()
testInt()
testScientific()
testTwoAnds()

Table Of Contents

Previous topic

semantic.units

This Page