blob: f4bfc724fc41436584b38af44ef01b00e8f8adec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# -*- coding: utf-8 -*-
"""
Created on 14/02/2022
@author: BENEDET-BEN01
Python version : 3.6.9
DRAGON version : v5bev2068
This script allows to test 2 C2M procedures
FloatList: create a list of 1 floats
StringList: create a list of 1 character
"""
import lifo, cle2000
from assertS import *
stack1=lifo.new()
stack1.pushEmpty("my_LCM", "LCM")
stack2=lifo.new()
stack2.pushEmpty("my_LCM", "LCM")
#Store a double
my_float_list = cle2000.new('FloatList',stack1,impx=1)
my_float_list.exec()
stack1.lib()
stack1.node(0).lib()
value = stack1.node(0)["Float_List"][0]
print("value=",value)
#Store a character :
my_string_list = cle2000.new('StringList',stack2,impx=1)
my_string_list.exec()
stack2.lib()
stack2.node(0).lib()
assertS(stack1.node(0),'Float_List',0,3.141592654)
print("test Exemple_jdd completed")
|