mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update test_answers.txt
This commit is contained in:
parent
ca13bb4a0f
commit
5dab337485
@ -23,7 +23,7 @@ hello!
|
||||
None
|
||||
|
||||
====== test voidp methods ======
|
||||
<void* at 0x7b>
|
||||
<void* at 0x000000000000007B>
|
||||
123
|
||||
|
||||
====== test sizing and indexing ======
|
||||
|
@ -141,7 +141,7 @@ struct SStream{
|
||||
SStream& operator<<(const char*);
|
||||
SStream& operator<<(int);
|
||||
SStream& operator<<(unsigned int);
|
||||
SStream& operator<<(unsigned long);
|
||||
SStream& operator<<(uint64_t);
|
||||
SStream& operator<<(i64);
|
||||
SStream& operator<<(f64);
|
||||
SStream& operator<<(const std::string&);
|
||||
|
@ -3,7 +3,7 @@
|
||||
namespace pkpy {
|
||||
REPL::REPL(VM* vm) : vm(vm){
|
||||
vm->stdout_write("pocketpy " PK_VERSION " (" __DATE__ ", " __TIME__ ") ");
|
||||
vm->stdout_write(fmt("[", (int)sizeof(void*)*8, " bit] on ", kPlatformStrings[PK_SYS_PLATFORM], "\n"));
|
||||
vm->stdout_write(fmt("[", sizeof(void*)*8, " bit] on ", kPlatformStrings[PK_SYS_PLATFORM], "\n"));
|
||||
vm->stdout_write("https://github.com/blueloveTH/pocketpy" "\n");
|
||||
vm->stdout_write("Type \"exit()\" to exit." "\n");
|
||||
}
|
||||
|
@ -473,8 +473,8 @@ int utf8len(unsigned char c, bool suppress){
|
||||
return (*this) << static_cast<i64>(val);
|
||||
}
|
||||
|
||||
SStream& SStream::operator<<(unsigned long val){
|
||||
// unsigned long could be out of range of `i64`, use `std::to_string` instead
|
||||
SStream& SStream::operator<<(uint64_t val){
|
||||
// uint64_t could be out of range of `i64`, use `std::to_string` instead
|
||||
return (*this) << std::to_string(val);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user