Skip to content

Commit

Permalink
add npm color test
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jun 7, 2018
1 parent 7115310 commit f9d737e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sample/src/main/ts/color.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as colors from "colors/safe";

import {
Stream,
Arrays,
} from "ts/jdk8-types";


export function test() {

let b = "hello jjs";

let a = Arrays.asList( "item1", "item2", "item3", "item4.1" );

print( colors.red(b) );

a.stream().forEach( e => {
print( colors.green(e) );
});

Stream.of<string>( "<item2>" ).forEach( e => {
print( colors.green(e) );
});
}

0 comments on commit f9d737e

Please sign in to comment.