File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2022,6 +2022,20 @@ public void testDecimal128MatrixUpload() throws Exception {
2022
2022
assertEquals (decimal128matrix2 .getString (), decimal128matrix2Res .getString ());
2023
2023
assertEquals ("\n " , decimal128matrix2Res .getString ());
2024
2024
}
2025
+ @ Test
2026
+ public void testTensorUpload () throws Exception {
2027
+ HashMap <String , Entity > map = new HashMap <String , Entity >();
2028
+ Entity bc = conn .run ("tensor(100)" );
2029
+ map .put ("tensor1" , bc );
2030
+ String re = null ;
2031
+ try {
2032
+ conn .upload (map );
2033
+ }catch (Exception ex ){
2034
+ re = ex .getMessage ();
2035
+ }
2036
+ assertEquals ("BasicTensor not support write method." , re );
2037
+ }
2038
+
2025
2039
@ Test
2026
2040
public void testUserDefineFunction () throws IOException {
2027
2041
conn .run ("def f(a,b) {return a+b};" );
You can’t perform that action at this time.
0 commit comments