提交 3a4ff0fa 编写于 作者: 杜庆泉's avatar 杜庆泉

IJSONStringify 命名调整

上级 b7539bbb
...@@ -39,7 +39,7 @@ function countOccurrences(str : string, substr : string) : number { ...@@ -39,7 +39,7 @@ function countOccurrences(str : string, substr : string) : number {
} }
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
class A1 implements IJsonStringify{ class A1 implements IJSONStringify{
override toJSON():any|null{ override toJSON():any|null{
let jsonRet = { let jsonRet = {
'name': "zhangsan", 'name': "zhangsan",
...@@ -49,31 +49,31 @@ class A1 implements IJsonStringify{ ...@@ -49,31 +49,31 @@ class A1 implements IJsonStringify{
} }
} }
class A2 implements IJsonStringify{ class A2 implements IJSONStringify{
toJSON():any|null{ toJSON():any|null{
return 2 return 2
} }
} }
class A3 implements IJsonStringify{ class A3 implements IJSONStringify{
toJSON():any|null{ toJSON():any|null{
return "json" return "json"
} }
} }
class A4 implements IJsonStringify{ class A4 implements IJSONStringify{
toJSON():any|null{ toJSON():any|null{
return null return null
} }
} }
class A5 implements IJsonStringify{ class A5 implements IJSONStringify{
toJSON():any|null{ toJSON():any|null{
return new A1() return new A1()
} }
} }
class A6 implements IJsonStringify{ class A6 implements IJSONStringify{
toJSON():any|null{ toJSON():any|null{
return new A5() return new A5()
} }
......
...@@ -59,7 +59,7 @@ export function testUTSJSONObject() : Result { ...@@ -59,7 +59,7 @@ export function testUTSJSONObject() : Result {
expect(data2!.toJSONString()).toEqual('{"str":"test","num":1.0,"num2":2.369}') expect(data2!.toJSONString()).toEqual('{"str":"test","num":1.0,"num2":2.369}')
class TestData2 implements IJsonStringify{ class TestData2 implements IJSONStringify{
toJSON():any|null{ toJSON():any|null{
return "122" return "122"
} }
......
...@@ -2,7 +2,7 @@ import { Matchers,NumberMatchers } from './Matchers.uts' ...@@ -2,7 +2,7 @@ import { Matchers,NumberMatchers } from './Matchers.uts'
export const describes = new Map<string, Result>() export const describes = new Map<string, Result>()
// #ifndef APP-IOS // #ifndef APP-IOS
export class Result implements IJsonStringify { export class Result implements IJSONStringify {
total = 0 total = 0
passed: string[] = [] passed: string[] = []
failed: string[] = [] failed: string[] = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册