File: tuple_to_array.rs

package info (click to toggle)
rust-magnus 0.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,468 kB
  • sloc: ruby: 150; sh: 17; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 179 bytes parent folder | download
1
2
3
4
5
6
#[test]
fn it_converts_tuple_to_array() {
    let ruby = unsafe { magnus::embed::init() };

    magnus::rb_assert!(ruby, "val == [1, 2.3, nil, [4]]", val = (1, 2.3, (), (4,)));
}