comparison truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/GlobalSymbolTest.java @ 22173:dcb70d90c11d

Merging in changes in default branch
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 21 Sep 2015 11:21:03 +0200
parents 41c5f430ce37 dc83cc1f94f2
children 364e3f024643
comparison
equal deleted inserted replaced
22172:b31dcacfc8ff 22173:dcb70d90c11d
22 */ 22 */
23 package com.oracle.truffle.api.test.vm; 23 package com.oracle.truffle.api.test.vm;
24 24
25 import com.oracle.truffle.api.source.Source; 25 import com.oracle.truffle.api.source.Source;
26 import static com.oracle.truffle.api.test.vm.ImplicitExplicitExportTest.L3; 26 import static com.oracle.truffle.api.test.vm.ImplicitExplicitExportTest.L3;
27 import com.oracle.truffle.api.vm.*; 27 import com.oracle.truffle.api.vm.PolyglotEngine;
28 import java.io.*; 28 import java.io.IOException;
29 import java.util.concurrent.Executors; 29 import java.util.concurrent.Executors;
30 import org.junit.*; 30 import static org.junit.Assert.assertEquals;
31 import static org.junit.Assert.*; 31 import static org.junit.Assert.assertNotNull;
32 import org.junit.Test;
32 33
33 public class GlobalSymbolTest { 34 public class GlobalSymbolTest {
34 @Test 35 @Test
35 public void globalSymbolFoundByLanguage() throws IOException { 36 public void globalSymbolFoundByLanguage() throws IOException {
36 PolyglotEngine vm = PolyglotEngine.buildNew().globalSymbol("ahoj", "42").executor(Executors.newSingleThreadExecutor()).build(); 37 PolyglotEngine vm = PolyglotEngine.buildNew().globalSymbol("ahoj", "42").executor(Executors.newSingleThreadExecutor()).build();