Mercurial > hg > octave-lyh
comparison src/pt-binop.cc @ 14429:eff4a5933e28
Update %!tests in src/ directory with Octave coding conventions.
* data.cc, defaults.cc, dirfns.cc, file-io.cc, graphics.cc, mappers.cc,
oct-map.cc, octave.cc, ov-base.cc, ov-bool-mat.cc, ov-cell.cc,
ov-fcn-handle.cc, ov-fcn-inline.cc, ov-flt-re-mat.cc, ov-int16.cc, ov-int32.cc,
ov-int64.cc, ov-int8.cc, ov-null-mat.cc, ov-oncleanup.cc, ov-range.cc,
ov-re-mat.cc, ov-struct.cc, ov-typeinfo.cc, ov-uint16.cc, ov-uint32.cc,
ov-uint64.cc, ov-uint8.cc, ov.cc, pr-output.cc, pt-binop.cc, pt-eval.cc,
pt-idx.cc, pt-mat.cc, sighandlers.cc, strfns.cc, symtab.cc, syscalls.cc,
sysdep.cc, toplev.cc, utils.cc, variables.cc: Update %!tests in src/ directory
with Octave coding conventions.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 04 Mar 2012 12:21:10 -0800 |
parents | 72c96de7a403 |
children |
comparison
equal
deleted
inserted
replaced
14428:099bd779466c | 14429:eff4a5933e28 |
---|---|
300 { | 300 { |
301 return SET_INTERNAL_VARIABLE (do_braindead_shortcircuit_evaluation); | 301 return SET_INTERNAL_VARIABLE (do_braindead_shortcircuit_evaluation); |
302 } | 302 } |
303 | 303 |
304 /* | 304 /* |
305 | |
306 %!test | 305 %!test |
307 %! x = 0; | 306 %! x = 0; |
308 %! do_braindead_shortcircuit_evaluation (0); | 307 %! do_braindead_shortcircuit_evaluation (0); |
309 %! if (1 | (x = 1)) | 308 %! if (1 | (x = 1)) |
310 %! endif | 309 %! endif |
311 %! assert (x, 1); | 310 %! assert (x, 1); |
312 %! do_braindead_shortcircuit_evaluation (1); | 311 %! do_braindead_shortcircuit_evaluation (1); |
313 %! if (1 | (x = 0)) | 312 %! if (1 | (x = 0)) |
314 %! endif | 313 %! endif |
315 %! assert (x, 1); | 314 %! assert (x, 1); |
316 | |
317 */ | 315 */ |
318 |