File tree Expand file tree Collapse file tree 4 files changed +27683
-27682
lines changed
tests/docstrings_examples Expand file tree Collapse file tree 4 files changed +27683
-27682
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ let extractExamples = async () => {
156156let main = async () => {
157157 let examples = await extractExamples ()
158158 examples -> Array .sort ((a , b ) =>
159- String . length (a .id ) > String . length (b .id ) ? Ordering .fromInt (1 ) : Ordering .fromInt (- 1 )
159+ Obj . magic (a .id ) > Obj . magic (b .id ) ? Ordering .fromInt (1 ) : Ordering .fromInt (- 1 )
160160 )
161161 let testsContent =
162162 examples
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import * as ArrayUtils from "./ArrayUtils.res.mjs";
1414import * as Belt_Array from "rescript/lib/es6/Belt_Array.js" ;
1515import * as Pervasives from "rescript/lib/es6/Pervasives.js" ;
1616import * as SpawnAsync from "./SpawnAsync.res.mjs" ;
17+ import * as Primitive_object from "rescript/lib/es6/Primitive_object.js" ;
1718import * as Promises from "node:fs/promises" ;
1819import * as Primitive_exceptions from "rescript/lib/es6/Primitive_exceptions.js" ;
1920import * as RescriptTools_Docgen from "rescript/lib/es6/RescriptTools_Docgen.js" ;
@@ -216,7 +217,7 @@ async function extractExamples() {
216217async function main ( ) {
217218 let examples = await extractExamples ( ) ;
218219 examples . sort ( ( a , b ) => {
219- if ( a . id . length > b . id . length ) {
220+ if ( Primitive_object . greaterthan ( a . id , b . id ) ) {
220221 return Ordering . fromInt ( 1 ) ;
221222 } else {
222223 return Ordering . fromInt ( - 1 ) ;
You can’t perform that action at this time.
0 commit comments