blob: f6f8af8ed2f8f5723e26eac02a7d9b20d4814307 [file] [log] [blame]
/*
* Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion A block statement supports sequencing of code.
* Execution of a block statement { s1, ... , sn } proceeds as follows:
* For i in 1..n; si is executed.
* @description Checks that contents of a block statement are executed
* sequentially from top to bottom.
* @author vasya
* @reviewer rodionov
* @reviewer iefremov
*/
import '../../../Utils/expect.dart';
main() {
{
var i = "1";
Expect.equals("1", i);
i = "${i}2";
Expect.equals("12", i);
i = "${i}3";
Expect.equals("123", i);
}
}