QRCodeTest
extends TestCase
in package
Tests basic functions of the QRCode class
Table of Contents
- testGetMatrixException() : void
- tests if an exception is thrown when trying to call getMatrix() without data (empty string, no data set)
- testInitDataInterfaceException() : void
- tests if an exception is thrown when an invalid (built-in) output type is specified
- testIsAlphaNum() : void
- isAlphaNum() should pass on the 45 defined characters and fail on anything else (e.g. lowercase)
- testIsByte() : void
- isByte() passses any binary string and only fails on empty strings
- testIsKanji() : void
- isKanji() should pass on Kanji/SJIS characters and fail on everything else
- testIsNumber() : void
- isNumber() should pass on any number and fail on anything else
Methods
testGetMatrixException()
tests if an exception is thrown when trying to call getMatrix() without data (empty string, no data set)
public
testGetMatrixException() : void
Return values
void —testInitDataInterfaceException()
tests if an exception is thrown when an invalid (built-in) output type is specified
public
testInitDataInterfaceException() : void
Return values
void —testIsAlphaNum()
isAlphaNum() should pass on the 45 defined characters and fail on anything else (e.g. lowercase)
public
testIsAlphaNum() : void
Return values
void —testIsByte()
isByte() passses any binary string and only fails on empty strings
public
testIsByte() : void
Return values
void —testIsKanji()
isKanji() should pass on Kanji/SJIS characters and fail on everything else
public
testIsKanji() : void
Return values
void —testIsNumber()
isNumber() should pass on any number and fail on anything else
public
testIsNumber() : void