Skip to content

Commit

Permalink
feat(platform): assemble space: update custom input
Browse files Browse the repository at this point in the history
pass compile;
pass bdd test;
  • Loading branch information
yyc-git committed Dec 9, 2023
1 parent 2b3536f commit 8bde638
Show file tree
Hide file tree
Showing 249 changed files with 4,894 additions and 696 deletions.
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. */
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 defaults/meta3d-bs-jest-cucumber/lib/es6_global/src/Expect.bs.js
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 */
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 modified defaults/meta3d-bs-most-default/lib/es6_global/src/most.bs.js
100755 → 100644
Empty file.
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. */
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. */
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. */
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. */
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. */
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. */
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. */
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. */
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. */
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 defaults/meta3d-commonlib/lib/es6_global/src/Main.bs.js
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 defaults/meta3d-commonlib/lib/es6_global/src/contract/Contract.bs.js
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 */
Loading

0 comments on commit 8bde638

Please sign in to comment.