blob: 17deb47d3e4716b3e9686d4fb8cc9f05c565237f [file] [log] [blame]
/*
* Copyright (c) 2011 Google Inc.
*
* All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse
* Public License v1.0 which accompanies this distribution, and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*/
package com.google.eclipse.protobuf.bugs;
import static com.google.eclipse.protobuf.junit.core.UnitTestModule.unitTestModule;
import static com.google.eclipse.protobuf.junit.core.XtextRule.overrideRuntimeModuleWith;
import static org.junit.Assert.assertNotNull;
import org.junit.*;
import com.google.eclipse.protobuf.junit.core.XtextRule;
/**
* Tests fix for <a href="http://code.google.com/p/protobuf-dt/issues/detail?id=154">Issue 154</a>.
*
* @author alruiz@google.com (Alex Ruiz)
*/
public class Issue154_AllowMultipleSemicolons_Test {
@Rule public XtextRule xtext = overrideRuntimeModuleWith(unitTestModule());
// syntax = "proto2";
//
// message Foo {
// optional double bar = 1 [deprecated = true];;
// }
@Test public void should_allow_multiple_semicolons_at_the_end_of_field() {
assertNotNull(xtext.root());
}
}