-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(platform): assemble space: update custom input
pass compile; pass bdd test;
- Loading branch information
Showing
249 changed files
with
4,894 additions
and
696 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
defaults/meta3d-bs-jest-cucumber/lib/es6_global/src/Cucumber.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
13 changes: 13 additions & 0 deletions
13
defaults/meta3d-bs-jest-cucumber/lib/es6_global/src/CucumberAsync.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
|
||
var execStep = (function(stepFunc,title, bodyFunc){ | ||
stepFunc(title, () =>{ | ||
return bodyFunc() | ||
}) | ||
}); | ||
|
||
export { | ||
execStep , | ||
} | ||
/* No side effect */ |
47 changes: 47 additions & 0 deletions
47
defaults/meta3d-bs-jest-cucumber/lib/es6_global/src/Expect.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
|
||
import * as Curry from "../../../../../node_modules/rescript/lib/es6/curry.js"; | ||
|
||
var _invokeNotMethod = (function(jsObj, methodName, paramsArr) { | ||
return jsObj.not[methodName].apply(null, paramsArr) | ||
}); | ||
|
||
var _invokeMethod = (function(jsObj, methodName, paramsArr) { | ||
return jsObj[methodName].apply(null, paramsArr) | ||
}); | ||
|
||
function toEqualFunc(param, target) { | ||
Curry._1(param.toEqual, target); | ||
} | ||
|
||
function toMatchSnapshotFunc(expectReturnData) { | ||
return _invokeMethod(expectReturnData, "toMatchSnapshot", []); | ||
} | ||
|
||
function toThrowMessage(param, message) { | ||
Curry._1(param.toThrow, message); | ||
} | ||
|
||
function toThrow(expectReturnData) { | ||
return _invokeMethod(expectReturnData, "toThrow", []); | ||
} | ||
|
||
function toNotThrow(expectReturnData) { | ||
return _invokeNotMethod(expectReturnData, "toThrow", []); | ||
} | ||
|
||
function toNotEqual(expectReturnData, val) { | ||
return _invokeNotMethod(expectReturnData, "toEqual", [val]); | ||
} | ||
|
||
export { | ||
_invokeNotMethod , | ||
_invokeMethod , | ||
toEqualFunc , | ||
toMatchSnapshotFunc , | ||
toThrowMessage , | ||
toThrow , | ||
toNotThrow , | ||
toNotEqual , | ||
} | ||
/* No side effect */ |
10 changes: 10 additions & 0 deletions
10
defaults/meta3d-bs-jest-cucumber/lib/es6_global/src/Operators.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
|
||
import * as Expect$Meta3dBsJestCucumber from "./Expect.bs.js"; | ||
|
||
var $eq = Expect$Meta3dBsJestCucumber.toEqualFunc; | ||
|
||
export { | ||
$eq , | ||
} | ||
/* No side effect */ |
Empty file.
1 change: 1 addition & 0 deletions
1
defaults/meta3d-commonlib-type/lib/es6_global/src/component/ComponentType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
defaults/meta3d-commonlib-type/lib/es6_global/src/component/Matrix4Type.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
defaults/meta3d-commonlib-type/lib/es6_global/src/component/SharedArrayBufferType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
defaults/meta3d-commonlib-type/lib/es6_global/src/component/VectorType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
defaults/meta3d-commonlib-type/lib/es6_global/src/structure/hash_map/HashMapType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
...ts/meta3d-commonlib-type/lib/es6_global/src/structure/hash_map/ImmutableHashMapType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
...ults/meta3d-commonlib-type/lib/es6_global/src/structure/hash_map/MutableHashMapType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
...eta3d-commonlib-type/lib/es6_global/src/structure/sparse_map/ImmutableSparseMapType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
.../meta3d-commonlib-type/lib/es6_global/src/structure/sparse_map/MutableSparseMapType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
1 change: 1 addition & 0 deletions
1
defaults/meta3d-commonlib-type/lib/es6_global/src/structure/sparse_map/SparseMapType.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
196 changes: 196 additions & 0 deletions
196
defaults/meta3d-commonlib/lib/es6_global/src/contract/Contract.bs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,196 @@ | ||
|
||
|
||
import * as Curry from "../../../../../../node_modules/rescript/lib/es6/curry.js"; | ||
import * as Js_exn from "../../../../../../node_modules/rescript/lib/es6/js_exn.js"; | ||
import * as Caml_obj from "../../../../../../node_modules/rescript/lib/es6/caml_obj.js"; | ||
import * as Belt_List from "../../../../../../node_modules/rescript/lib/es6/belt_List.js"; | ||
import * as Js_option from "../../../../../../node_modules/rescript/lib/es6/js_option.js"; | ||
|
||
function _assert(result, message) { | ||
return result; | ||
} | ||
|
||
function test(message, func) { | ||
if (Curry._1(func, undefined)) { | ||
return ; | ||
} else { | ||
return Js_exn.raiseError(message); | ||
} | ||
} | ||
|
||
function requireCheck(f, isTest) { | ||
if (isTest) { | ||
return Curry._1(f, undefined); | ||
} | ||
|
||
} | ||
|
||
function ensureCheck(returnVal, f, isTest) { | ||
if (isTest) { | ||
Curry._1(f, returnVal); | ||
return returnVal; | ||
} else { | ||
return returnVal; | ||
} | ||
} | ||
|
||
function assertPass(param) { | ||
return true; | ||
} | ||
|
||
function assertTrue(source) { | ||
return source === true; | ||
} | ||
|
||
function assertFalse(source) { | ||
return source === false; | ||
} | ||
|
||
function assertJsTrue(source) { | ||
return source === true; | ||
} | ||
|
||
function assertJsFalse(source) { | ||
return source === false; | ||
} | ||
|
||
function assertIsBool(source) { | ||
if (source === true) { | ||
return true; | ||
} else { | ||
return source === false; | ||
} | ||
} | ||
|
||
var _isNullableExist = (function(source) { | ||
return source !== undefined && source !== null; | ||
}); | ||
|
||
var assertNullableExist = _isNullableExist; | ||
|
||
function _isNullableListExist(sourceList) { | ||
return Js_option.isNone(Belt_List.getBy(sourceList, (function (source) { | ||
return source == null; | ||
}))); | ||
} | ||
|
||
var assertNullableListExist = _isNullableListExist; | ||
|
||
var assertExist = Js_option.isSome; | ||
|
||
var assertNotExist = Js_option.isNone; | ||
|
||
function _getEqualMessage(source, target) { | ||
return "\"expect to be " + target + ", but actual is " + source + "\""; | ||
} | ||
|
||
function assertEqual(kind, source, target) { | ||
_getEqualMessage(source, target); | ||
return Caml_obj.equal(source, target); | ||
} | ||
|
||
function _getNotEqualMessage(source, target) { | ||
return "\"expect not to be " + target + ", but actual is " + source + "\""; | ||
} | ||
|
||
function assertNotEqual(kind, source, target) { | ||
_getNotEqualMessage(source, target); | ||
return Caml_obj.notequal(source, target); | ||
} | ||
|
||
function assertGt(kind, source, target) { | ||
return Caml_obj.greaterthan(source, target); | ||
} | ||
|
||
function assertGte(kind, source, target) { | ||
return Caml_obj.greaterequal(source, target); | ||
} | ||
|
||
function assertLt(kind, source, target) { | ||
return Caml_obj.lessthan(source, target); | ||
} | ||
|
||
function assertLte(kind, source, target) { | ||
return Caml_obj.lessequal(source, target); | ||
} | ||
|
||
function $eq(a, b) { | ||
return assertEqual(/* Int */0, a, b); | ||
} | ||
|
||
function $eq$eq$dot(a, b) { | ||
return assertEqual(/* Float */1, a, b); | ||
} | ||
|
||
function $eq$eq$caret(a, b) { | ||
return assertEqual(/* String */2, a, b); | ||
} | ||
|
||
function $less$great$eq(a, b) { | ||
return assertNotEqual(/* Int */0, a, b); | ||
} | ||
|
||
function $less$great$eq$dot(a, b) { | ||
return assertNotEqual(/* Float */1, a, b); | ||
} | ||
|
||
var $great = Caml_obj.greaterthan; | ||
|
||
var $great$dot = Caml_obj.greaterthan; | ||
|
||
var $great$eq = Caml_obj.greaterequal; | ||
|
||
var $great$eq$dot = Caml_obj.greaterequal; | ||
|
||
var $less = Caml_obj.lessthan; | ||
|
||
var $less$dot = Caml_obj.lessthan; | ||
|
||
var $less$eq = Caml_obj.lessequal; | ||
|
||
var $less$eq$dot = Caml_obj.lessequal; | ||
|
||
var Operators = { | ||
$eq: $eq, | ||
$eq$eq$dot: $eq$eq$dot, | ||
$eq$eq$caret: $eq$eq$caret, | ||
$less$great$eq: $less$great$eq, | ||
$less$great$eq$dot: $less$great$eq$dot, | ||
$great: $great, | ||
$great$dot: $great$dot, | ||
$great$eq: $great$eq, | ||
$great$eq$dot: $great$eq$dot, | ||
$less: $less, | ||
$less$dot: $less$dot, | ||
$less$eq: $less$eq, | ||
$less$eq$dot: $less$eq$dot | ||
}; | ||
|
||
export { | ||
_assert , | ||
test , | ||
requireCheck , | ||
ensureCheck , | ||
assertPass , | ||
assertTrue , | ||
assertFalse , | ||
assertJsTrue , | ||
assertJsFalse , | ||
assertIsBool , | ||
_isNullableExist , | ||
assertNullableExist , | ||
_isNullableListExist , | ||
assertNullableListExist , | ||
assertExist , | ||
assertNotExist , | ||
_getEqualMessage , | ||
assertEqual , | ||
_getNotEqualMessage , | ||
assertNotEqual , | ||
assertGt , | ||
assertGte , | ||
assertLt , | ||
assertLte , | ||
Operators , | ||
} | ||
/* No side effect */ |
Oops, something went wrong.