Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created September 23, 2012 18:03
Show Gist options
  • Select an option

  • Save edipofederle/3772534 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/3772534 to your computer and use it in GitHub Desktop.
testjava.java
@Test
public void test1(){
List<Double> in = new ArrayList<Double>();
in.add(1d);
in.add(2d);
in.add(3d);
List<Double> out = new ArrayList<Double>();
out.add(1d);
out.add(4d);
out.add(9d);
Assert.assertEquals(out, Main.squareList(in));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment