Skip to content

Commit 7d40148

Browse files
authored
Add regression case for #498 (#602)
1 parent 2ac4d04 commit 7d40148

File tree

7 files changed

+933
-0
lines changed

7 files changed

+933
-0
lines changed

test/fixture/es6-import.output.json

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,5 +2697,175 @@
26972697
}
26982698
],
26992699
"namespace": "execute"
2700+
},
2701+
{
2702+
"description": {
2703+
"type": "root",
2704+
"children": [
2705+
{
2706+
"type": "paragraph",
2707+
"children": [
2708+
{
2709+
"type": "text",
2710+
"value": "Regression check for #498",
2711+
"position": {
2712+
"start": {
2713+
"line": 1,
2714+
"column": 1,
2715+
"offset": 0
2716+
},
2717+
"end": {
2718+
"line": 1,
2719+
"column": 26,
2720+
"offset": 25
2721+
},
2722+
"indent": []
2723+
}
2724+
}
2725+
],
2726+
"position": {
2727+
"start": {
2728+
"line": 1,
2729+
"column": 1,
2730+
"offset": 0
2731+
},
2732+
"end": {
2733+
"line": 1,
2734+
"column": 26,
2735+
"offset": 25
2736+
},
2737+
"indent": []
2738+
}
2739+
}
2740+
],
2741+
"position": {
2742+
"start": {
2743+
"line": 1,
2744+
"column": 1,
2745+
"offset": 0
2746+
},
2747+
"end": {
2748+
"line": 1,
2749+
"column": 26,
2750+
"offset": 25
2751+
}
2752+
}
2753+
},
2754+
"tags": [],
2755+
"loc": {
2756+
"start": {
2757+
"line": 146,
2758+
"column": 0
2759+
},
2760+
"end": {
2761+
"line": 146,
2762+
"column": 32
2763+
}
2764+
},
2765+
"context": {
2766+
"loc": {
2767+
"start": {
2768+
"line": 147,
2769+
"column": 0
2770+
},
2771+
"end": {
2772+
"line": 153,
2773+
"column": 1
2774+
}
2775+
}
2776+
},
2777+
"errors": [],
2778+
"name": "isArrayEqualWith",
2779+
"kind": "function",
2780+
"params": [
2781+
{
2782+
"title": "param",
2783+
"name": "array1",
2784+
"lineNumber": 148,
2785+
"type": {
2786+
"type": "TypeApplication",
2787+
"expression": {
2788+
"type": "NameExpression",
2789+
"name": "Array"
2790+
},
2791+
"applications": [
2792+
{
2793+
"type": "NameExpression",
2794+
"name": "T"
2795+
}
2796+
]
2797+
}
2798+
},
2799+
{
2800+
"title": "param",
2801+
"name": "array2",
2802+
"lineNumber": 149,
2803+
"type": {
2804+
"type": "TypeApplication",
2805+
"expression": {
2806+
"type": "NameExpression",
2807+
"name": "Array"
2808+
},
2809+
"applications": [
2810+
{
2811+
"type": "NameExpression",
2812+
"name": "T"
2813+
}
2814+
]
2815+
}
2816+
},
2817+
{
2818+
"title": "param",
2819+
"name": "compareFunction",
2820+
"default": "(a: T, b: T): boolean => a === b",
2821+
"type": {
2822+
"type": "OptionalType",
2823+
"expression": {
2824+
"type": "FunctionType",
2825+
"params": [
2826+
{
2827+
"type": "ParameterType",
2828+
"name": "a",
2829+
"expression": {
2830+
"type": "NameExpression",
2831+
"name": "T"
2832+
}
2833+
},
2834+
{
2835+
"type": "ParameterType",
2836+
"name": "b",
2837+
"expression": {
2838+
"type": "NameExpression",
2839+
"name": "T"
2840+
}
2841+
}
2842+
],
2843+
"result": {
2844+
"type": "NameExpression",
2845+
"name": "boolean"
2846+
}
2847+
}
2848+
}
2849+
}
2850+
],
2851+
"returns": [
2852+
{
2853+
"type": {
2854+
"type": "NameExpression",
2855+
"name": "boolean"
2856+
}
2857+
}
2858+
],
2859+
"members": {
2860+
"instance": [],
2861+
"static": []
2862+
},
2863+
"path": [
2864+
{
2865+
"name": "isArrayEqualWith",
2866+
"kind": "function"
2867+
}
2868+
],
2869+
"namespace": "isArrayEqualWith"
27002870
}
27012871
]

test/fixture/es6-import.output.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,15 @@ A public function
140140
# execute
141141

142142
This is re-exported
143+
144+
# isArrayEqualWith
145+
146+
Regression check for #498
147+
148+
**Parameters**
149+
150+
- `array1` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<T>**
151+
- `array2` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<T>**
152+
- `compareFunction` **function (a: T, b: T): [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** (optional, default `(a: T, b: T): boolean => a === b`)
153+
154+
Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**

0 commit comments

Comments
 (0)