Examples of DoubleLink


Examples of com.google.eclipse.protobuf.protobuf.DoubleLink

  // }
  @Test public void should_not_have_syntax_errors() {
    DefaultValueFieldOption option = xtext.find("default", DefaultValueFieldOption.class);
    Value value = option.getValue();
    assertThat(value, instanceOf(DoubleLink.class));
    DoubleLink link = (DoubleLink) value;
    assertThat(link.getTarget(), equalTo(1.0E7d));
  }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.DoubleLink

  // }
  @Test public void should_not_have_syntax_errors() {
    DefaultValueFieldOption option = xtext.find("default", DefaultValueFieldOption.class);
    Value value = option.getValue();
    assertThat(value, instanceOf(DoubleLink.class));
    DoubleLink link = (DoubleLink) value;
    assertThat(link.getTarget(), equalTo(1.0E25d));
  }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.DoubleLink

  // message Test {
  //   optional double something = 1 [default = 1.];
  // }
  @Test public void should_support_optional_decimals() {
    DefaultValueFieldOption option = xtext.find("default", DefaultValueFieldOption.class);
    DoubleLink link = (DoubleLink) option.getValue();
    assertThat(link.getTarget(), equalTo(1.0d));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.