Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.tck/src/com/oracle/truffle/tck/ComplexNumber.java @ 22496:b3569a53c24c
Refactor and improve ComplexNumber sequence tests
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Mon, 14 Dec 2015 14:20:08 +0100 |
parents | aeba89e1d8da |
children | 9bba3a7b34be |
comparison
equal
deleted
inserted
replaced
22495:aeba89e1d8da | 22496:b3569a53c24c |
---|---|
31 import com.oracle.truffle.api.interop.ForeignAccess.Factory; | 31 import com.oracle.truffle.api.interop.ForeignAccess.Factory; |
32 import com.oracle.truffle.api.interop.Message; | 32 import com.oracle.truffle.api.interop.Message; |
33 import com.oracle.truffle.api.interop.TruffleObject; | 33 import com.oracle.truffle.api.interop.TruffleObject; |
34 import com.oracle.truffle.api.nodes.RootNode; | 34 import com.oracle.truffle.api.nodes.RootNode; |
35 | 35 |
36 public final class ComplexNumber implements TruffleObject { | 36 final class ComplexNumber implements TruffleObject { |
37 | 37 |
38 public static final String REAL_IDENTIFIER = "real"; | 38 public static final String REAL_IDENTIFIER = "real"; |
39 public static final String IMAGINARY_IDENTIFIER = "imaginary"; | 39 public static final String IMAGINARY_IDENTIFIER = "imaginary"; |
40 | 40 |
41 private double real; | 41 private double real; |
42 private double imag; | 42 private double imag; |
43 | 43 |
44 public ComplexNumber(double real, double imaginary) { | 44 ComplexNumber(double real, double imaginary) { |
45 this.real = real; | 45 this.real = real; |
46 this.imag = imaginary; | 46 this.imag = imaginary; |
47 } | 47 } |
48 | 48 |
49 public ForeignAccess getForeignAccess() { | 49 public ForeignAccess getForeignAccess() { |