-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: move tests locally and start bindings to array
- Loading branch information
Hongbo Zhang
committed
Jul 13, 2016
1 parent
208f3ec
commit 68f337e
Showing
311 changed files
with
844 additions
and
1,130 deletions.
There are no files selected for viewing
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
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
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
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
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,59 @@ | ||
(* Copyright (C) 2015-2016 Bloomberg Finance L.P. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* In addition to the permissions granted to you by the LGPL, you may combine | ||
* or link a "work that uses the Library" with a publicly distributed version | ||
* of this file to produce a combined library or application, then distribute | ||
* that combined work under the terms of your choosing, with no requirement | ||
* to comply with the obligations normally placed on you by section 4 of the | ||
* LGPL version 3 (or the corresponding section of a later version of the LGPL | ||
* should you choose to use a later version). | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) | ||
|
||
|
||
type 'a t = 'a array | ||
|
||
class type ['a] _obj = object ('self_type) | ||
method length : int | ||
method toString : unit -> string | ||
method toLocaleString : unit -> string | ||
method concat : 'self_type Js.t -> 'self_type Js.t | ||
method concat_one : 'a -> 'self_type Js.t | ||
method join : string -> string | ||
method slice : int -> int -> 'self_type Js.t | ||
method slice_copy : unit -> 'self_type Js.t | ||
method slice_start : int -> 'self_type Js.t | ||
method indexOf : 'a -> int -> int | ||
method indexOf_start : 'a -> int | ||
method lastIndexOf : 'a -> int -> int | ||
method lastIndexOf_start : 'a -> int | ||
method every : ('a -> int -> Js.boolean [@bs]) -> Js.boolean | ||
method some : ('a -> int -> Js.boolean [@bs]) -> Js.boolean | ||
method forEach : ('a -> 'int -> unit [@bs]) -> unit | ||
method map : ('a -> 'b [@bs]) -> 'b _obj Js.t | ||
method map_i : ('a -> int -> 'b [@bs]) -> 'b _obj Js.t | ||
method filter : ('a -> int -> Js.boolean[@bs]) -> 'self_type Js.t | ||
method reduce : ('a -> 'a -> int -> 'a [@bs]) -> 'a -> 'a | ||
end [@bs] | ||
|
||
type 'a obj = 'a _obj Js.t | ||
|
||
|
||
external as_obj : 'a t -> 'a obj = "%identity" | ||
external as_val : 'a obj -> 'a t = "%identity" | ||
|
||
|
||
|
||
|
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,59 @@ | ||
(* Copyright (C) 2015-2016 Bloomberg Finance L.P. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* In addition to the permissions granted to you by the LGPL, you may combine | ||
* or link a "work that uses the Library" with a publicly distributed version | ||
* of this file to produce a combined library or application, then distribute | ||
* that combined work under the terms of your choosing, with no requirement | ||
* to comply with the obligations normally placed on you by section 4 of the | ||
* LGPL version 3 (or the corresponding section of a later version of the LGPL | ||
* should you choose to use a later version). | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) | ||
|
||
|
||
type 'a t = 'a array | ||
|
||
class type ['a] _obj = object ('self_type) | ||
method length : int | ||
method toString : unit -> string | ||
method toLocaleString : unit -> string | ||
method concat : 'self_type Js.t -> 'self_type Js.t | ||
method concat_one : 'a -> 'self_type Js.t | ||
method join : string -> string | ||
method slice : int -> int -> 'self_type Js.t | ||
method slice_copy : unit -> 'self_type Js.t | ||
method slice_start : int -> 'self_type Js.t | ||
method indexOf : 'a -> int -> int | ||
method indexOf_start : 'a -> int | ||
method lastIndexOf : 'a -> int -> int | ||
method lastIndexOf_start : 'a -> int | ||
method every : ('a -> int -> Js.boolean [@bs]) -> Js.boolean | ||
method some : ('a -> int -> Js.boolean [@bs]) -> Js.boolean | ||
method forEach : ('a -> 'int -> unit [@bs]) -> unit | ||
method map : ('a -> 'b [@bs]) -> 'b _obj Js.t | ||
method map_i : ('a -> int -> 'b [@bs]) -> 'b _obj Js.t | ||
method filter : ('a -> int -> Js.boolean[@bs]) -> 'self_type Js.t | ||
method reduce : ('a -> 'a -> int -> 'a [@bs]) -> 'a -> 'a | ||
end [@bs] | ||
|
||
type 'a obj = 'a _obj Js.t | ||
|
||
|
||
external as_obj : 'a t -> 'a obj = "%identity" | ||
external as_val : 'a obj -> 'a t = "%identity" | ||
|
||
|
||
|
||
|
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
lib/js/test/a_filename_test.js → jscomp/test/a_filename_test.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
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
2 changes: 1 addition & 1 deletion
2
lib/js/test/a_recursive_type.js → jscomp/test/a_recursive_type.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
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
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
lib/js/test/and_or_tailcall_test.js → jscomp/test/and_or_tailcall_test.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
4 changes: 2 additions & 2 deletions
4
lib/js/test/ari_regress_test.js → jscomp/test/ari_regress_test.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
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
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
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
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
File renamed without changes.
File renamed without changes.
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
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
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
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
lib/js/test/caml_compare_test.js → jscomp/test/caml_compare_test.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
24 changes: 12 additions & 12 deletions
24
lib/js/test/caml_format_test.js → jscomp/test/caml_format_test.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
2 changes: 1 addition & 1 deletion
2
lib/js/test/chain_code_test.js → jscomp/test/chain_code_test.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
Oops, something went wrong.