• Home
  • Raw
  • Download

Lines Matching refs:seg

821 		struct qrcodegen_Segment seg = qrcodegen_makeBytes(NULL, 0, NULL);  in testMakeBytes()  local
822 assert(seg.mode == qrcodegen_Mode_BYTE); in testMakeBytes()
823 assert(seg.numChars == 0); in testMakeBytes()
824 assert(seg.bitLength == 0); in testMakeBytes()
830 struct qrcodegen_Segment seg = qrcodegen_makeBytes(data, 1, buf); in testMakeBytes() local
831 assert(seg.numChars == 1); in testMakeBytes()
832 assert(seg.bitLength == 8); in testMakeBytes()
833 assert(seg.data[0] == 0x00); in testMakeBytes()
839 struct qrcodegen_Segment seg = qrcodegen_makeBytes(data, 3, buf); in testMakeBytes() local
840 assert(seg.numChars == 3); in testMakeBytes()
841 assert(seg.bitLength == 24); in testMakeBytes()
842 assert(seg.data[0] == 0xEF); in testMakeBytes()
843 assert(seg.data[1] == 0xBB); in testMakeBytes()
844 assert(seg.data[2] == 0xBF); in testMakeBytes()
852 struct qrcodegen_Segment seg = qrcodegen_makeNumeric("", NULL); in testMakeNumeric() local
853 assert(seg.mode == qrcodegen_Mode_NUMERIC); in testMakeNumeric()
854 assert(seg.numChars == 0); in testMakeNumeric()
855 assert(seg.bitLength == 0); in testMakeNumeric()
860 struct qrcodegen_Segment seg = qrcodegen_makeNumeric("9", buf); in testMakeNumeric() local
861 assert(seg.numChars == 1); in testMakeNumeric()
862 assert(seg.bitLength == 4); in testMakeNumeric()
863 assert(seg.data[0] == 0x90); in testMakeNumeric()
868 struct qrcodegen_Segment seg = qrcodegen_makeNumeric("81", buf); in testMakeNumeric() local
869 assert(seg.numChars == 2); in testMakeNumeric()
870 assert(seg.bitLength == 7); in testMakeNumeric()
871 assert(seg.data[0] == 0xA2); in testMakeNumeric()
876 struct qrcodegen_Segment seg = qrcodegen_makeNumeric("673", buf); in testMakeNumeric() local
877 assert(seg.numChars == 3); in testMakeNumeric()
878 assert(seg.bitLength == 10); in testMakeNumeric()
879 assert(seg.data[0] == 0xA8); in testMakeNumeric()
880 assert(seg.data[1] == 0x40); in testMakeNumeric()
885 struct qrcodegen_Segment seg = qrcodegen_makeNumeric("3141592653", buf); in testMakeNumeric() local
886 assert(seg.numChars == 10); in testMakeNumeric()
887 assert(seg.bitLength == 34); in testMakeNumeric()
888 assert(seg.data[0] == 0x4E); in testMakeNumeric()
889 assert(seg.data[1] == 0x89); in testMakeNumeric()
890 assert(seg.data[2] == 0xF4); in testMakeNumeric()
891 assert(seg.data[3] == 0x24); in testMakeNumeric()
892 assert(seg.data[4] == 0xC0); in testMakeNumeric()
900 struct qrcodegen_Segment seg = qrcodegen_makeAlphanumeric("", NULL); in testMakeAlphanumeric() local
901 assert(seg.mode == qrcodegen_Mode_ALPHANUMERIC); in testMakeAlphanumeric()
902 assert(seg.numChars == 0); in testMakeAlphanumeric()
903 assert(seg.bitLength == 0); in testMakeAlphanumeric()
908 struct qrcodegen_Segment seg = qrcodegen_makeAlphanumeric("A", buf); in testMakeAlphanumeric() local
909 assert(seg.numChars == 1); in testMakeAlphanumeric()
910 assert(seg.bitLength == 6); in testMakeAlphanumeric()
911 assert(seg.data[0] == 0x28); in testMakeAlphanumeric()
916 struct qrcodegen_Segment seg = qrcodegen_makeAlphanumeric("%:", buf); in testMakeAlphanumeric() local
917 assert(seg.numChars == 2); in testMakeAlphanumeric()
918 assert(seg.bitLength == 11); in testMakeAlphanumeric()
919 assert(seg.data[0] == 0xDB); in testMakeAlphanumeric()
920 assert(seg.data[1] == 0x40); in testMakeAlphanumeric()
925 struct qrcodegen_Segment seg = qrcodegen_makeAlphanumeric("Q R", buf); in testMakeAlphanumeric() local
926 assert(seg.numChars == 3); in testMakeAlphanumeric()
927 assert(seg.bitLength == 17); in testMakeAlphanumeric()
928 assert(seg.data[0] == 0x96); in testMakeAlphanumeric()
929 assert(seg.data[1] == 0xCD); in testMakeAlphanumeric()
930 assert(seg.data[2] == 0x80); in testMakeAlphanumeric()
939 struct qrcodegen_Segment seg = qrcodegen_makeEci(127, buf); in testMakeEci() local
940 assert(seg.mode == qrcodegen_Mode_ECI); in testMakeEci()
941 assert(seg.numChars == 0); in testMakeEci()
942 assert(seg.bitLength == 8); in testMakeEci()
943 assert(seg.data[0] == 0x7F); in testMakeEci()
948 struct qrcodegen_Segment seg = qrcodegen_makeEci(10345, buf); in testMakeEci() local
949 assert(seg.numChars == 0); in testMakeEci()
950 assert(seg.bitLength == 16); in testMakeEci()
951 assert(seg.data[0] == 0xA8); in testMakeEci()
952 assert(seg.data[1] == 0x69); in testMakeEci()
957 struct qrcodegen_Segment seg = qrcodegen_makeEci(999999, buf); in testMakeEci() local
958 assert(seg.numChars == 0); in testMakeEci()
959 assert(seg.bitLength == 24); in testMakeEci()
960 assert(seg.data[0] == 0xCF); in testMakeEci()
961 assert(seg.data[1] == 0x42); in testMakeEci()
962 assert(seg.data[2] == 0x3F); in testMakeEci()