# Ticket #1942: test_sage0.log

File test_sage0.log, 5.1 KB (added by , 13 years ago) |
---|

Line | |
---|---|

1 | sage -t -verbose devel/sage-main/sage/interfaces/sage0.py [?1034hTrying: |

2 | s = Sage()###line 43:_sage_ >>> s = Sage() |

3 | Expecting nothing |

4 | ok |

5 | Trying: |

6 | a = s(Integer(2))###line 46:_sage_ >>> a = s(2) |

7 | Expecting nothing |

8 | ok |

9 | Trying: |

10 | a**Integer(3)###line 47:_sage_ >>> a^3 |

11 | Expecting: |

12 | 8 |

13 | ok |

14 | Trying: |

15 | V = s('QQ^4')###line 51:_sage_ >>> V = s('QQ^4') |

16 | Expecting nothing |

17 | ok |

18 | Trying: |

19 | V.gens()###line 52:_sage_ >>> V.gens() |

20 | Expecting: |

21 | ((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)) |

22 | ok |

23 | Trying: |

24 | type(V)###line 58:_sage_ >>> type(V) |

25 | Expecting: |

26 | <class 'sage.interfaces.sage0.SageElement'> |

27 | ok |

28 | Trying: |

29 | V.parent()###line 60:_sage_ >>> V.parent() |

30 | Expecting: |

31 | Sage |

32 | ok |

33 | Trying: |

34 | g = V.gen(0); g###line 62:_sage_ >>> g = V.0; g |

35 | Expecting: |

36 | (1, 0, 0, 0) |

37 | ok |

38 | Trying: |

39 | g.parent()###line 64:_sage_ >>> g.parent() |

40 | Expecting: |

41 | Sage |

42 | ok |

43 | Trying: |

44 | s('%s.parent()'%g.name())###line 69:_sage_ >>> s('%s.parent()'%g.name()) |

45 | Expecting: |

46 | Vector space of dimension 4 over Rational Field |

47 | ok |

48 | Trying: |

49 | x = Integer(10)###line 73:_sage_ >>> x = 10 |

50 | Expecting nothing |

51 | ok |

52 | Trying: |

53 | s('x = 5')###line 74:_sage_ >>> s('x = 5') |

54 | Expecting: |

55 | 5 |

56 | ok |

57 | Trying: |

58 | x###line 76:_sage_ >>> x |

59 | Expecting: |

60 | 10 |

61 | ok |

62 | Trying: |

63 | s('x')###line 78:_sage_ >>> s('x') |

64 | Expecting: |

65 | 5 |

66 | ok |

67 | Trying: |

68 | s3 = s('Sage()')###line 83:_sage_ >>> s3 = s('Sage()') |

69 | Expecting nothing |

70 | ok |

71 | Trying: |

72 | a = s3(Integer(10))###line 84:_sage_ >>> a = s3(10) |

73 | Expecting nothing |

74 | ok |

75 | Trying: |

76 | a###line 85:_sage_ >>> a |

77 | Expecting: |

78 | 10 |

79 | ok |

80 | Trying: |

81 | _ = s.eval('%s.eval("x=8")'%s3.name())###line 90:_sage_ >>> _ = s.eval('%s.eval("x=8")'%s3.name()) |

82 | Expecting nothing |

83 | ok |

84 | Trying: |

85 | s3('"x"')###line 91:_sage_ >>> s3('"x"') |

86 | Expecting: |

87 | 8 |

88 | ok |

89 | Trying: |

90 | s('x')###line 93:_sage_ >>> s('x') |

91 | Expecting: |

92 | 5 |

93 | ok |

94 | Trying: |

95 | x###line 95:_sage_ >>> x |

96 | Expecting: |

97 | 10 |

98 | ok |

99 | Trying: |

100 | _= sage0.cputime() # random output###line 143:_sage_ >>> _= sage0.cputime() # random output |

101 | Expecting nothing |

102 | ********************************************************************** |

103 | File ".doctest_sage0.py", line 90, in __main__.example_2 |

104 | Failed example: |

105 | _= sage0.cputime() # random output###line 143:_sage_ >>> _= sage0.cputime() # random output |

106 | Exception raised: |

107 | Traceback (most recent call last): |

108 | File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/doctest.py", line 1212, in __run |

109 | compileflags, 1) in test.globs |

110 | File "<doctest __main__.example_2[0]>", line 1, in <module> |

111 | _= sage0.cputime() # random output###line 143:_sage_ >>> _= sage0.cputime() # random output |

112 | File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage/interfaces/sage0.py", line 150, in cputime |

113 | return eval(self.eval('cputime(%s)'%t)) |

114 | File "<string>", line 1 |

115 | [0;31m [0m1.3227979999999999 |

116 | ^ |

117 | SyntaxError: invalid syntax |

118 | Trying: |

119 | sage0('factor(2^157-1)')###line 145:_sage_ >>> sage0('factor(2^157-1)') |

120 | Expecting: |

121 | 852133201 * 60726444167 * 1654058017289 * 2134387368610417 |

122 | ok |

123 | Trying: |

124 | _= sage0.cputime() # random output###line 147:_sage_ >>> _= sage0.cputime() # random output |

125 | Expecting nothing |

126 | ********************************************************************** |

127 | File ".doctest_sage0.py", line 95, in __main__.example_2 |

128 | Failed example: |

129 | _= sage0.cputime() # random output###line 147:_sage_ >>> _= sage0.cputime() # random output |

130 | Exception raised: |

131 | Traceback (most recent call last): |

132 | File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/doctest.py", line 1212, in __run |

133 | compileflags, 1) in test.globs |

134 | File "<doctest __main__.example_2[2]>", line 1, in <module> |

135 | _= sage0.cputime() # random output###line 147:_sage_ >>> _= sage0.cputime() # random output |

136 | File "/home/jaap/downloads/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage/interfaces/sage0.py", line 150, in cputime |

137 | return eval(self.eval('cputime(%s)'%t)) |

138 | File "<string>", line 1 |

139 | [0;31m [0m1.7007409999999998 |

140 | ^ |

141 | SyntaxError: invalid syntax |

142 | Trying: |

143 | sr = mq.SR(allow_zero_inversions=True)###line 284:_sage_ >>> sr = mq.SR(allow_zero_inversions=True) |

144 | Expecting nothing |

145 | ok |

146 | Trying: |

147 | F,s = sr.polynomial_system()###line 285:_sage_ >>> F,s = sr.polynomial_system() |

148 | Expecting nothing |

149 | ok |

150 | Trying: |

151 | F == sage0(F)._sage_()###line 286:_sage_ >>> F == sage0(F)._sage_() |

152 | Expecting: |

153 | True |

154 | ok |

155 | 7 items had no tests: |

156 | __main__ |

157 | __main__.example_0 |

158 | __main__.example_3 |

159 | __main__.example_4 |

160 | __main__.example_5 |

161 | __main__.example_6 |

162 | __main__.example_8 |

163 | 2 items passed all tests: |

164 | 21 tests in __main__.example_1 |

165 | 3 tests in __main__.example_7 |

166 | ********************************************************************** |

167 | 1 items had failures: |

168 | 2 of 3 in __main__.example_2 |

169 | 27 tests in 10 items. |

170 | 25 passed and 2 failed. |

171 | ***Test Failed*** 2 failures. |

172 | |

173 | [6.7 s] |

174 | exit code: 256 |

175 | |

176 | ---------------------------------------------------------------------- |

177 | The following tests failed: |

178 | |

179 | |

180 | sage -t -verbose devel/sage-main/sage/interfaces/sage0.py |

181 | Total time for all tests: 6.7 seconds |