~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/xcos/tests/nonreg_tests/bug_10781.dia.ref

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// =============================================================================
 
2
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
3
// Copyright (C) 2012 - DIGITEO - Alexandre HERISSE
 
4
//
 
5
//  This file is distributed under the same license as the Scilab package.
 
6
// =============================================================================
 
7
// <-- TEST WITH XCOS -->
 
8
//
 
9
// <-- Non-regression test for bug 10781 -->
 
10
//
 
11
// <-- Bugzilla URL -->
 
12
// http://bugzilla.scilab.org/show_bug.cgi?id=10781
 
13
//
 
14
// <-- Short Description -->
 
15
// DFlipflop should not report problem in port size or type
 
16
assert_checktrue(importXcosDiagram(SCI + "/modules/xcos/tests/nonreg_tests/bug_10781.xcos"));
 
17
// compile and simulate
 
18
xcos_simulate(scs_m, 4);
 
19
lastQ=double(Q.values($));
 
20
lastnonQ=double(nonQ.values($));
 
21
assert_checkequal(lastQ, 1);
 
22
assert_checkequal(lastnonQ, 0);